diff options
Diffstat (limited to 'xsd/libxsd/xsd/cxx/parser/xml-schema.txx')
-rw-r--r-- | xsd/libxsd/xsd/cxx/parser/xml-schema.txx | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/xsd/libxsd/xsd/cxx/parser/xml-schema.txx b/xsd/libxsd/xsd/cxx/parser/xml-schema.txx new file mode 100644 index 0000000..90e558d --- /dev/null +++ b/xsd/libxsd/xsd/cxx/parser/xml-schema.txx @@ -0,0 +1,33 @@ +// file : xsd/cxx/parser/xml-schema.txx +// copyright : Copyright (c) 2005-2014 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +namespace xsd +{ + namespace cxx + { + namespace parser + { + // string_sequence + // + template <typename C> + bool + operator== (const string_sequence<C>& a, const string_sequence<C>& b) + { + if (a.size () != b.size ()) + return false; + + for (typename string_sequence<C>::const_iterator + ai (a.begin ()), bi (b.begin ()), ae (a.end ()); + ai != ae; ++ai, ++bi) + { + if (*ai != *bi) + return false; + } + + return true; + } + } + } +} + |