aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/string-sequence-stl.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-10-07 14:48:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-10-07 14:48:13 +0200
commit4f38adc11ab1a3a1ab2dd3f958c917182be7d71f (patch)
treefd4242b2fb5648536a6307a18442abfcaf280573 /libxsde/xsde/cxx/string-sequence-stl.ixx
parent0baca4b033509b6c4ebfabfb74bf6518c3b1182c (diff)
Implement generation of clone functions
New test: clone.
Diffstat (limited to 'libxsde/xsde/cxx/string-sequence-stl.ixx')
-rw-r--r--libxsde/xsde/cxx/string-sequence-stl.ixx15
1 files changed, 14 insertions, 1 deletions
diff --git a/libxsde/xsde/cxx/string-sequence-stl.ixx b/libxsde/xsde/cxx/string-sequence-stl.ixx
index 55e3d5d..ae09d04 100644
--- a/libxsde/xsde/cxx/string-sequence-stl.ixx
+++ b/libxsde/xsde/cxx/string-sequence-stl.ixx
@@ -134,8 +134,15 @@ namespace xsde
reserve (size_t n)
{
if (capacity_ < n)
- grow_ (n, sizeof (std::string*), &move_);
+ grow_ (n, sizeof (std::string), &move_);
}
+
+ inline void string_sequence::
+ _copy (string_sequence& c) const
+ {
+ copy (c);
+ }
+
#else
inline sequence_base::error string_sequence::
push_back (const std::string& x)
@@ -193,6 +200,12 @@ namespace xsde
r = grow_ (n, sizeof (std::string), &move_);
return r;
}
+
+ inline bool string_sequence::
+ _copy (string_sequence& c) const
+ {
+ return copy (c) == error_none;
+ }
#endif
inline bool