Lines Matching refs:mpl
36 namespace mpl = boost::mpl;
66 typedef mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaa'> almost_full; in main()
67 typedef mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa'> full; in main()
69 BOOST_MPL_ASSERT_RELATION(0, ==, (mpl::size<mpl::string<> >::value)); in main()
70 BOOST_MPL_ASSERT_RELATION(1, ==, (mpl::size<mpl::string<'a'> >::value)); in main()
71 BOOST_MPL_ASSERT_RELATION(2, ==, (mpl::size<mpl::string<'ab'> >::value)); in main()
72 BOOST_MPL_ASSERT_RELATION(2, ==, (mpl::size<mpl::string<'a','b'> >::value)); in main()
73 BOOST_MPL_ASSERT_RELATION(4, ==, (mpl::size<mpl::string<'abcd'> >::value)); in main()
74 BOOST_MPL_ASSERT_RELATION(5, ==, (mpl::size<mpl::string<'abcd','e'> >::value)); in main()
75 BOOST_MPL_ASSERT_RELATION(31, ==, (mpl::size<almost_full>::value)); in main()
76 BOOST_MPL_ASSERT_RELATION(32, ==, (mpl::size<full>::value)); in main()
81 typedef mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaa'> almost_full; in main()
82 typedef mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa'> full; in main()
86 mpl::begin<mpl::string<> >::type in main()
87 , mpl::end<mpl::string<> >::type in main()
93 mpl::begin<mpl::string<'a'> >::type in main()
94 , mpl::string_iterator<mpl::string<'a'>, 0, 0> in main()
100 mpl::end<mpl::string<'a'> >::type in main()
101 , mpl::string_iterator<mpl::string<'a'>, 1, 0> in main()
107 mpl::begin<almost_full>::type in main()
108 , mpl::string_iterator<almost_full, 0, 0> in main()
114 mpl::end<almost_full>::type in main()
115 , mpl::string_iterator<almost_full, 8, 0> in main()
121 mpl::begin<full>::type in main()
122 , mpl::string_iterator<full, 0, 0> in main()
128 mpl::end<full>::type in main()
129 , mpl::string_iterator<full, 8, 0> in main()
136 typedef mpl::push_back<mpl::string<>, mpl::char_<'a'> >::type t1; in main()
137 BOOST_MPL_ASSERT((boost::is_same<t1, mpl::string<'a'> >)); in main()
139 typedef mpl::push_back<t1, mpl::char_<'b'> >::type t2; in main()
140 BOOST_MPL_ASSERT((boost::is_same<t2, mpl::string<'ab'> >)); in main()
142 typedef mpl::push_back<t2, mpl::char_<'c'> >::type t3; in main()
143 BOOST_MPL_ASSERT((boost::is_same<t3, mpl::string<'abc'> >)); in main()
145 typedef mpl::push_back<t3, mpl::char_<'d'> >::type t4; in main()
146 BOOST_MPL_ASSERT((boost::is_same<t4, mpl::string<'abcd'> >)); in main()
148 typedef mpl::push_back<t4, mpl::char_<'e'> >::type t5; in main()
149 BOOST_MPL_ASSERT((boost::is_same<t5, mpl::string<'abcd','e'> >)); in main()
151 typedef mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaa'> almost_full; in main()
152 typedef mpl::push_back<almost_full, mpl::char_<'X'> >::type t6; in main()
153 …BOOST_MPL_ASSERT((boost::is_same<t6, mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa',… in main()
158 typedef mpl::string<'a','bc','def','ghij'> s; in main()
160 typedef mpl::begin<s>::type i0; in main()
161 BOOST_MPL_ASSERT((boost::is_same<i0, mpl::string_iterator<s,0,0> >)); in main()
163 typedef mpl::next<i0>::type i1; in main()
164 BOOST_MPL_ASSERT((boost::is_same<i1, mpl::string_iterator<s,1,0> >)); in main()
166 typedef mpl::next<i1>::type i2; in main()
167 BOOST_MPL_ASSERT((boost::is_same<i2, mpl::string_iterator<s,1,1> >)); in main()
169 typedef mpl::next<i2>::type i3; in main()
170 BOOST_MPL_ASSERT((boost::is_same<i3, mpl::string_iterator<s,2,0> >)); in main()
172 typedef mpl::next<i3>::type i4; in main()
173 BOOST_MPL_ASSERT((boost::is_same<i4, mpl::string_iterator<s,2,1> >)); in main()
175 typedef mpl::next<i4>::type i5; in main()
176 BOOST_MPL_ASSERT((boost::is_same<i5, mpl::string_iterator<s,2,2> >)); in main()
178 typedef mpl::next<i5>::type i6; in main()
179 BOOST_MPL_ASSERT((boost::is_same<i6, mpl::string_iterator<s,3,0> >)); in main()
181 typedef mpl::next<i6>::type i7; in main()
182 BOOST_MPL_ASSERT((boost::is_same<i7, mpl::string_iterator<s,3,1> >)); in main()
184 typedef mpl::next<i7>::type i8; in main()
185 BOOST_MPL_ASSERT((boost::is_same<i8, mpl::string_iterator<s,3,2> >)); in main()
187 typedef mpl::next<i8>::type i9; in main()
188 BOOST_MPL_ASSERT((boost::is_same<i9, mpl::string_iterator<s,3,3> >)); in main()
190 typedef mpl::next<i9>::type i10; in main()
191 BOOST_MPL_ASSERT((boost::is_same<i10, mpl::string_iterator<s,4,0> >)); in main()
193 BOOST_MPL_ASSERT((boost::is_same<i10, mpl::end<s>::type>)); in main()
198 typedef mpl::string<'a','bc','def','ghij'> s; in main()
200 typedef mpl::end<s>::type i10; in main()
201 BOOST_MPL_ASSERT((boost::is_same<i10, mpl::string_iterator<s,4,0> >)); in main()
203 typedef mpl::prior<i10>::type i9; in main()
204 BOOST_MPL_ASSERT((boost::is_same<i9, mpl::string_iterator<s,3,3> >)); in main()
206 typedef mpl::prior<i9>::type i8; in main()
207 BOOST_MPL_ASSERT((boost::is_same<i8, mpl::string_iterator<s,3,2> >)); in main()
209 typedef mpl::prior<i8>::type i7; in main()
210 BOOST_MPL_ASSERT((boost::is_same<i7, mpl::string_iterator<s,3,1> >)); in main()
212 typedef mpl::prior<i7>::type i6; in main()
213 BOOST_MPL_ASSERT((boost::is_same<i6, mpl::string_iterator<s,3,0> >)); in main()
215 typedef mpl::prior<i6>::type i5; in main()
216 BOOST_MPL_ASSERT((boost::is_same<i5, mpl::string_iterator<s,2,2> >)); in main()
218 typedef mpl::prior<i5>::type i4; in main()
219 BOOST_MPL_ASSERT((boost::is_same<i4, mpl::string_iterator<s,2,1> >)); in main()
221 typedef mpl::prior<i4>::type i3; in main()
222 BOOST_MPL_ASSERT((boost::is_same<i3, mpl::string_iterator<s,2,0> >)); in main()
224 typedef mpl::prior<i3>::type i2; in main()
225 BOOST_MPL_ASSERT((boost::is_same<i2, mpl::string_iterator<s,1,1> >)); in main()
227 typedef mpl::prior<i2>::type i1; in main()
228 BOOST_MPL_ASSERT((boost::is_same<i1, mpl::string_iterator<s,1,0> >)); in main()
230 typedef mpl::prior<i1>::type i0; in main()
231 BOOST_MPL_ASSERT((boost::is_same<i0, mpl::string_iterator<s,0,0> >)); in main()
233 BOOST_MPL_ASSERT((boost::is_same<i0, mpl::begin<s>::type>)); in main()
238 typedef mpl::string<'a','bc','def','ghij'> s; in main()
240 typedef mpl::begin<s>::type i0; in main()
241 BOOST_MPL_ASSERT((boost::is_same<mpl::deref<i0>::type, mpl::char_<'a'> >)); in main()
243 typedef mpl::next<i0>::type i1; in main()
244 BOOST_MPL_ASSERT((boost::is_same<mpl::deref<i1>::type, mpl::char_<'b'> >)); in main()
246 typedef mpl::next<i1>::type i2; in main()
247 BOOST_MPL_ASSERT((boost::is_same<mpl::deref<i2>::type, mpl::char_<'c'> >)); in main()
249 typedef mpl::next<i2>::type i3; in main()
250 BOOST_MPL_ASSERT((boost::is_same<mpl::deref<i3>::type, mpl::char_<'d'> >)); in main()
252 typedef mpl::next<i3>::type i4; in main()
253 BOOST_MPL_ASSERT((boost::is_same<mpl::deref<i4>::type, mpl::char_<'e'> >)); in main()
255 typedef mpl::next<i4>::type i5; in main()
256 BOOST_MPL_ASSERT((boost::is_same<mpl::deref<i5>::type, mpl::char_<'f'> >)); in main()
258 typedef mpl::next<i5>::type i6; in main()
259 BOOST_MPL_ASSERT((boost::is_same<mpl::deref<i6>::type, mpl::char_<'g'> >)); in main()
261 typedef mpl::next<i6>::type i7; in main()
262 BOOST_MPL_ASSERT((boost::is_same<mpl::deref<i7>::type, mpl::char_<'h'> >)); in main()
264 typedef mpl::next<i7>::type i8; in main()
265 BOOST_MPL_ASSERT((boost::is_same<mpl::deref<i8>::type, mpl::char_<'i'> >)); in main()
267 typedef mpl::next<i8>::type i9; in main()
268 BOOST_MPL_ASSERT((boost::is_same<mpl::deref<i9>::type, mpl::char_<'j'> >)); in main()
273 typedef mpl::push_back<mpl::string<>, mpl::char_<'a'> >::type t1; in main()
274 BOOST_MPL_ASSERT((boost::is_same<t1, mpl::string<'a'> >)); in main()
276 typedef mpl::push_back<t1, mpl::char_<'b'> >::type t2; in main()
277 BOOST_MPL_ASSERT((boost::is_same<t2, mpl::string<'ab'> >)); in main()
279 typedef mpl::push_back<t2, mpl::char_<'c'> >::type t3; in main()
280 BOOST_MPL_ASSERT((boost::is_same<t3, mpl::string<'abc'> >)); in main()
282 typedef mpl::push_back<t3, mpl::char_<'d'> >::type t4; in main()
283 BOOST_MPL_ASSERT((boost::is_same<t4, mpl::string<'abcd'> >)); in main()
285 typedef mpl::push_back<t4, mpl::char_<'e'> >::type t5; in main()
286 BOOST_MPL_ASSERT((boost::is_same<t5, mpl::string<'abcd','e'> >)); in main()
288 typedef mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaa'> almost_full; in main()
289 typedef mpl::push_back<almost_full, mpl::char_<'X'> >::type t6; in main()
290 …BOOST_MPL_ASSERT((boost::is_same<t6, mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa',… in main()
292 typedef mpl::string<'a','a','a','a','a','a','a','aaaa'> must_repack; in main()
293 typedef mpl::push_back<must_repack, mpl::char_<'X'> >::type t7; in main()
294 BOOST_MPL_ASSERT((boost::is_same<t7, mpl::string<'aaaa','aaaa','aaaX'> >)); in main()
297 BOOST_MPL_ASSERT((mpl::empty<mpl::string<> >)); in main()
298 BOOST_MPL_ASSERT_NOT((mpl::empty<mpl::string<'hi!'> >)); in main()
302 typedef mpl::push_front<mpl::string<>, mpl::char_<'a'> >::type t1; in main()
303 BOOST_MPL_ASSERT((boost::is_same<t1, mpl::string<'a'> >)); in main()
305 typedef mpl::push_front<t1, mpl::char_<'b'> >::type t2; in main()
306 BOOST_MPL_ASSERT((boost::is_same<t2, mpl::string<'ba'> >)); in main()
308 typedef mpl::push_front<t2, mpl::char_<'c'> >::type t3; in main()
309 BOOST_MPL_ASSERT((boost::is_same<t3, mpl::string<'cba'> >)); in main()
311 typedef mpl::push_front<t3, mpl::char_<'d'> >::type t4; in main()
312 BOOST_MPL_ASSERT((boost::is_same<t4, mpl::string<'dcba'> >)); in main()
314 typedef mpl::push_front<t4, mpl::char_<'e'> >::type t5; in main()
315 BOOST_MPL_ASSERT((boost::is_same<t5, mpl::string<'e','dcba'> >)); in main()
317 typedef mpl::string<'aaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa'> almost_full; in main()
318 typedef mpl::push_front<almost_full, mpl::char_<'X'> >::type t6; in main()
319 …BOOST_MPL_ASSERT((boost::is_same<t6, mpl::string<'Xaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa',… in main()
321 typedef mpl::string<'aaaa','a','a','a','a','a','a','a'> must_repack; in main()
322 typedef mpl::push_front<must_repack, mpl::char_<'X'> >::type t7; in main()
323 BOOST_MPL_ASSERT((boost::is_same<t7, mpl::string<'Xaaa','aaaa','aaaa'> >)); in main()
328 mpl::c_str<mpl::string<> >::value in main()
333 mpl::c_str<mpl::string<'Hell','o wo','rld!'> >::value in main()
338 mpl::c_str<mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaX'> >::value in main()
343 greeting<mpl::c_str<mpl::string<'Hell','o wo','rld!'> >::value> g; in main()
347 mpl::for_each<mpl::string<'Hell','o wo','rld!'> >(push_char(result)); in main()
350 BOOST_TEST(('h' == mpl::front<mpl::string<'hi!'> >::type())); in main()
351 BOOST_TEST(('!' == mpl::back<mpl::string<'hi!'> >::type())); in main()
354 typedef mpl::vector_c<char, 'a','b','c','d','e'> rgc; in main()
355 BOOST_TEST(0 == std::strcmp("abcde", mpl::c_str<rgc>::value)); in main()
356 typedef mpl::copy<rgc, mpl::back_inserter<mpl::string<> > >::type str; in main()
357 BOOST_TEST(0 == std::strcmp("abcde", mpl::c_str<str>::value)); in main()
361 typedef mpl::string<'Hell','o wo','rld!'> hello; in main()
362 typedef mpl::advance_c<mpl::begin<hello>::type, 5>::type where; in main()
363 typedef mpl::string<' cru','el'> cruel; in main()
364 typedef mpl::insert_range<hello, where, cruel>::type hello_cruel; in main()
365 BOOST_TEST(0 == std::strcmp("Hello cruel world!", mpl::c_str<hello_cruel>::value)); in main()
367 typedef mpl::erase<hello, mpl::begin<hello>::type, where>::type erased1; in main()
368 BOOST_TEST(0 == std::strcmp(" world!", mpl::c_str<erased1>::value)); in main()
375 mpl::pop_front<mpl::string<'a'> >::type in main()
376 , mpl::string<> in main()
382 mpl::pop_front<mpl::string<'ab'> >::type in main()
383 , mpl::string<'b'> in main()
389 mpl::pop_front<mpl::string<'abc'> >::type in main()
390 , mpl::string<'bc'> in main()
396 mpl::pop_front<mpl::string<'abcd'> >::type in main()
397 , mpl::string<'bcd'> in main()
403 mpl::pop_front<mpl::string<'abcd','e'> >::type in main()
404 , mpl::string<'bcd','e'> in main()
410 mpl::pop_front<mpl::string<'d','e'> >::type in main()
411 , mpl::string<'e'> in main()
417 … mpl::pop_front<mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa'> >::type in main()
418 , mpl::string<'aaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa'> in main()
427 mpl::pop_back<mpl::string<'a'> >::type in main()
428 , mpl::string<> in main()
434 mpl::pop_back<mpl::string<'ab'> >::type in main()
435 , mpl::string<'a'> in main()
441 mpl::pop_back<mpl::string<'abc'> >::type in main()
442 , mpl::string<'ab'> in main()
448 mpl::pop_back<mpl::string<'abcd'> >::type in main()
449 , mpl::string<'abc'> in main()
455 mpl::pop_back<mpl::string<'abcd','e'> >::type in main()
456 , mpl::string<'abcd'> in main()
462 mpl::pop_back<mpl::string<'d','e'> >::type in main()
463 , mpl::string<'d'> in main()
469 … mpl::pop_back<mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa'> >::type in main()
470 , mpl::string<'aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaaa','aaa'> in main()
477 mpl::at_c< in main()
478 mpl::string<'\x7f'> in main()
484 mpl::at_c< in main()
485 mpl::string<'\x80'> in main()
491 mpl::at_c< in main()
492 mpl::string< in main()
493 mpl::at_c< in main()
494 mpl::string<'\x7f'> in main()
503 mpl::at_c< in main()
504 mpl::string< in main()
505 mpl::at_c< in main()
506 mpl::string<'\x80'> in main()