From 783b167522ccf3aee85969dfb932274914449808 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 14 Oct 2010 12:33:01 +0200 Subject: Documentation fixes --- documentation/cxx/hybrid/guide/index.xhtml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'documentation') 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&); private: @@ -3821,14 +3825,17 @@ namespace xml_schema

The destructor() 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 push_back() and insert() - functions free the passed object if the reallocation of the - underlying sequence buffer fails.

- -

When exceptions are disabled, the push_back(), + Similarly, the clone() 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.

+ +

The push_back() and insert() functions + free the passed object if the reallocation of the underlying + sequence buffer fails. When exceptions are disabled, the + push_back(), insert(), and reserve() functions return an error code to signal the out of memory condition:

-- cgit v1.1