diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-03-11 15:09:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-03-11 15:09:17 +0200 |
commit | f8bb2faef4b272ed150eb3ca4cedaa79da410694 (patch) | |
tree | fff08a4d3ce6380709c84dc6b93d02de097dd7d5 /documentation | |
parent | da1ce0f39a36a2fca1f8d51a67b92be6368ddbfd (diff) |
Allow initialization of pod_seq and fix_seq from a C array
Use this in the hybrid/binary/custom example.
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/cxx/hybrid/guide/index.xhtml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/documentation/cxx/hybrid/guide/index.xhtml b/documentation/cxx/hybrid/guide/index.xhtml index 9a95473..f9ffccb 100644 --- a/documentation/cxx/hybrid/guide/index.xhtml +++ b/documentation/cxx/hybrid/guide/index.xhtml @@ -2008,12 +2008,16 @@ public: void reserve (size_t); + + void + assign (const T* src, size_t n); }; </pre> <p>When C++ exceptions are disabled, the signatures of the - <code>push_back()</code>, <code>insert()</code>, and - <code>reserve()</code> functions change as follows:</p> + <code>push_back()</code>, <code>insert()</code>, + <code>reserve()</code>, and <code>assign()</code> functions + change as follows:</p> <pre class="c++"> template <typename T> @@ -2040,6 +2044,9 @@ public: error reserve (size_t); + + error + assign (const T* src, size_t n); }; </pre> |