aboutsummaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-10-14 12:33:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-10-14 12:33:01 +0200
commit783b167522ccf3aee85969dfb932274914449808 (patch)
tree428e8cfc80d0f873c4304087a0e11764a9aeed1e /documentation
parentb7197929af1cca15e490703ba3632ae52a348b60 (diff)
Documentation fixes
Diffstat (limited to 'documentation')
-rw-r--r--documentation/cxx/hybrid/guide/index.xhtml23
1 files changed, 15 insertions, 8 deletions
diff --git a/documentation/cxx/hybrid/guide/index.xhtml b/documentation/cxx/hybrid/guide/index.xhtml
index b3edc1d..ebb67fb 100644
--- a/documentation/cxx/hybrid/guide/index.xhtml
+++ b/documentation/cxx/hybrid/guide/index.xhtml
@@ -3737,6 +3737,7 @@ namespace xml_schema
typedef const void* const* const_iterator;
typedef void (*destroy_func) (void* data, size_t pos);
+ typedef void* (*clone_func) (void* data, size_t pos);
public:
data_sequence ();
@@ -3745,6 +3746,9 @@ namespace xml_schema
destructor (destroy_func);
void
+ clone (clone_func);
+
+ void
swap (data_sequence&amp;);
private:
@@ -3821,14 +3825,17 @@ namespace xml_schema
<p>The <code>destructor()</code> modifier allows you to specify
the clean up function used to free the sequence elements.
- The second argument in this clean up function is the position
- of the element in the sequence that is being freed. This allows
- you to store objects of different types in the same custom
- data sequence. The <code>push_back()</code> and <code>insert()</code>
- functions free the passed object if the reallocation of the
- underlying sequence buffer fails.</p>
-
- <p>When exceptions are disabled, the <code>push_back()</code>,
+ Similarly, the <code>clone()</code> modifier allows you to specify
+ the cloning function used to copy the sequence elements.
+ The second argument in these functions is the position
+ of the element in the sequence. This allows you to store objects
+ of different types in the same custom
+ data sequence.</p>
+
+ <p>The <code>push_back()</code> and <code>insert()</code> functions
+ free the passed object if the reallocation of the underlying
+ sequence buffer fails. When exceptions are disabled, the
+ <code>push_back()</code>,
<code>insert()</code>, and <code>reserve()</code> functions
return an error code to signal the out of memory condition:</p>