Home
last modified time | relevance | path

Searched refs:dyn (Results 1 – 7 of 7) sorted by relevance

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/dynarray/dynarray.overview/
Dbegin_end.pass.cpp42 void dyn_test_const ( const dynarray<T> &dyn ) { in dyn_test_const() argument
43 const T *data = dyn.data (); in dyn_test_const()
44 assert ( data == &*dyn.begin ()); in dyn_test_const()
45 assert ( data == &*dyn.cbegin ()); in dyn_test_const()
47 assert ( data + dyn.size() - 1 == &*dyn.rbegin ()); in dyn_test_const()
48 assert ( data + dyn.size() - 1 == &*dyn.crbegin ()); in dyn_test_const()
50 assert ( dyn.size () == std::distance ( dyn.begin(), dyn.end())); in dyn_test_const()
51 assert ( dyn.size () == std::distance ( dyn.cbegin(), dyn.cend())); in dyn_test_const()
52 assert ( dyn.size () == std::distance ( dyn.rbegin(), dyn.rend())); in dyn_test_const()
53 assert ( dyn.size () == std::distance ( dyn.crbegin(), dyn.crend())); in dyn_test_const()
[all …]
Dat.pass.cpp29 void dyn_at_fail ( dynarray<T> &dyn, size_t sz ) { in dyn_at_fail() argument
30 try { dyn.at (sz); } in dyn_at_fail()
36 void dyn_at_fail_const ( const dynarray<T> &dyn, size_t sz ) { in dyn_at_fail_const() argument
37 try { dyn.at (sz); } in dyn_at_fail_const()
44 void dyn_test_const ( const dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test_const() argument
45 const T *data = dyn.data (); in dyn_test_const()
47 for ( size_t i = 0; i < dyn.size(); ++i, ++it ) { in dyn_test_const()
48 assert ( data + i == &dyn.at(i)); in dyn_test_const()
49 assert ( *it == dyn.at(i)); in dyn_test_const()
52 dyn_at_fail_const ( dyn, dyn.size ()); in dyn_test_const()
[all …]
Dfront_back.pass.cpp32 void dyn_test_const ( const dynarray<T> &dyn ) { in dyn_test_const() argument
33 const T *data = dyn.data (); in dyn_test_const()
34 assert ( *data == dyn.front ()); in dyn_test_const()
35 assert ( *(data + dyn.size() - 1 ) == dyn.back ()); in dyn_test_const()
39 void dyn_test ( dynarray<T> &dyn ) { in dyn_test() argument
40 T *data = dyn.data (); in dyn_test()
41 assert ( *data == dyn.front ()); in dyn_test()
42 assert ( *(data + dyn.size() - 1 ) == dyn.back ()); in dyn_test()
Dindexing.pass.cpp29 void dyn_test_const ( const dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test_const() argument
30 const T *data = dyn.data (); in dyn_test_const()
32 for ( size_t i = 0; i < dyn.size(); ++i, ++it ) { in dyn_test_const()
33 assert ( data + i == &dyn[i]); in dyn_test_const()
34 assert ( *it == dyn[i]); in dyn_test_const()
39 void dyn_test ( dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test() argument
40 T *data = dyn.data (); in dyn_test()
42 for ( size_t i = 0; i < dyn.size(); ++i, ++it ) { in dyn_test()
43 assert ( data + i == &dyn[i]); in dyn_test()
44 assert ( *it == dyn[i]); in dyn_test()
Dcapacity.pass.cpp30 void dyn_test ( const dynarray<T> &dyn, size_t sz ) { in dyn_test() argument
31 assert ( dyn.size () == sz ); in dyn_test()
32 assert ( dyn.max_size () == sz ); in dyn_test()
33 assert ( dyn.empty () == ( sz == 0 )); in dyn_test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/dynarray/dynarray.data/
Ddefault.pass.cpp30 void dyn_test_const ( const dynarray<T> &dyn ) { in dyn_test_const() argument
31 const T *data = dyn.data (); in dyn_test_const()
33 assert ( std::equal ( dyn.begin(), dyn.end(), data )); in dyn_test_const()
37 void dyn_test ( dynarray<T> &dyn ) { in dyn_test() argument
38 T *data = dyn.data (); in dyn_test()
40 assert ( std::equal ( dyn.begin(), dyn.end(), data )); in dyn_test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/dynarray/dynarray.cons/
Dalloc.pass.cpp39 void check_allocator ( const dynarray<T> &dyn, const Allocator &alloc ) { in check_allocator() argument
40 for ( int i = 0; i < dyn.size (); ++i ) in check_allocator()
41 assert ( dyn[i].get_allocator() == alloc ); in check_allocator()