diff options
author | Matt Derksen <v2cibmd@us.ibm.com> | 2016-05-17 10:29:08 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-05-19 17:07:47 -0400 |
commit | 270f1aa683c85219acafd6d00ef437b9884f02c3 (patch) | |
tree | 7a24df2d8f7dd2b0d79a6ef2caa188c66683d080 /src/include/vector | |
parent | 54d8abcaf4ba0872692421e6891bade6ec99d758 (diff) | |
download | talos-hostboot-270f1aa683c85219acafd6d00ef437b9884f02c3.tar.gz talos-hostboot-270f1aa683c85219acafd6d00ef437b9884f02c3.zip |
Added std::vector::data() function for hostboot.
Change-Id: I1d6eedf2a640afe674c361bb7da8705177c4f3d3
RTC:133837
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24665
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Tested-by: Jenkins Server
Tested-by: FSP CI Jenkins
Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/vector')
-rw-r--r-- | src/include/vector | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/vector b/src/include/vector index 1fab3d81a..ac502a047 100644 --- a/src/include/vector +++ b/src/include/vector @@ -424,6 +424,15 @@ namespace std return *(iv_finish-1); } + /* + * direct access to the underlying array + * (C++11) + */ + T * data() + { + return iv_start; + } + // -- Modifiers ----------------------------- /* |