u5e
UnicodeTextC++Library
encoding_assertion.hpp
1 #ifndef INCLUDED_U5E_ENCODING_ASSERTION
2 #define INCLUDED_U5E_ENCODING_ASSERTION
3 
4 #include <iterator>
5 #include <u5e/iterator_assertion.hpp>
6 
7 namespace u5e {
8  /**
9  * \brief Assert the encoding matches the native type
10  *
11  * Tests that the encoding can be used with the specific
12  * native string type.
13  */
14  template <typename BUFFERTYPE, typename T>
16  iterator_assertion<typename BUFFERTYPE::iterator, T>
17  _assertion1;
18  iterator_assertion<typename BUFFERTYPE::const_iterator, T>
19  _assertion2;
20  iterator_assertion<typename BUFFERTYPE::reverse_iterator, T>
21  _assertion3;
22  iterator_assertion<typename BUFFERTYPE::const_reverse_iterator, T>
23  _assertion4;
24  };
25 }
26 
27 #endif
main u5e namespace
Asserts the iterator is consistently defined.
Assert the encoding matches the native type.