Home
last modified time | relevance | path

Searched refs:test_allocator (Results 1 – 19 of 19) sorted by relevance

/third_party/boost/libs/thread/test/sync/futures/
Dtest_allocator.hpp37 class test_allocator class
42 template <class U> friend class test_allocator;
53 template <class U> struct rebind {typedef test_allocator<U> other;};
55 test_allocator() throw() : data_(-1) {} in test_allocator() function in test_allocator
56 explicit test_allocator(int i) throw() : data_(i) {} in test_allocator() function in test_allocator
57 test_allocator(const test_allocator& a) throw() in test_allocator() function in test_allocator
59 template <class U> test_allocator(const test_allocator<U>& a) throw() in test_allocator() function in test_allocator
61 ~test_allocator() throw() {data_ = 0;} in ~test_allocator()
83 friend bool operator==(const test_allocator& x, const test_allocator& y) in operator ==()
85 friend bool operator!=(const test_allocator& x, const test_allocator& y) in operator !=()
[all …]
/third_party/boost/libs/smart_ptr/test/
Dshared_ptr_alloc2_test.cpp34 template<class T> class test_allocator: public test_allocator_base class
56 typedef test_allocator<U> other;
69 explicit test_allocator( int id = 0 ): test_allocator_base( id ) in test_allocator() function in test_allocator
73 template<class U> test_allocator( test_allocator<U> const & r ): test_allocator_base( r ) in test_allocator() function in test_allocator
77 template<class U> test_allocator & operator=( test_allocator<U> const & r ) in operator =()
124 template<class T> T * test_allocator<T>::last_pointer_ = 0;
125 template<class T> std::size_t test_allocator<T>::last_n_ = 0;
126 template<class T> int test_allocator<T>::last_id_ = 0;
128 template<class T, class U> inline bool operator==( test_allocator<T> const & a1, test_allocator<U> … in operator ==()
133 template<class T, class U> inline bool operator!=( test_allocator<T> const & a1, test_allocator<U> … in operator !=()
[all …]
/third_party/boost/libs/beast/test/extras/include/boost/beast/test/
Dtest_allocator.hpp50 class test_allocator;
74 test_allocator<T, Equal, Assign, Move, Swap, true>
75 select_on_container_copy_construction(test_allocator< in select_on_container_copy_construction()
78 return test_allocator<T, in select_on_container_copy_construction()
90 class test_allocator class
97 friend class test_allocator;
114 using other = test_allocator<U, Equal, Assign, Move, Swap, Select>;
117 test_allocator() in test_allocator() function in boost::beast::test::test_allocator
123 test_allocator(test_allocator const& u) noexcept in test_allocator() function in boost::beast::test::test_allocator
130 test_allocator(test_allocator<U, in test_allocator() function in boost::beast::test::test_allocator
[all …]
/third_party/boost/libs/unordered/test/unordered/
Ddeduction_tests.cpp26 template <typename T> struct test_allocator struct
29 test_allocator() = default; argument
30 template <typename T2> test_allocator(test_allocator<T2> const&) {} in test_allocator() function
33 bool operator==(test_allocator const&) { return true; } in operator ==() argument
34 bool operator!=(test_allocator const&) { return false; } in operator !=() argument
47 test_allocator<std::pair<const int, int> > pair_allocator; in main()
91 test_allocator<std::pair<const int, int> > > >::value); in main()
131 test_allocator<std::pair<const int, int> > > >::value); in main()
216 test_allocator<std::pair<const int, int> > > >::value); in main()
265 test_allocator<std::pair<const int, int> > > >::value); in main()
[all …]
/third_party/boost/libs/thread/test/sync/futures/promise/
Dmove_assign_pass.cpp37 boost::promise<int> p0(boost::allocator_arg, test_allocator<int>()); in main()
38 boost::promise<int> p(boost::allocator_arg, test_allocator<int>()); in main()
59 boost::promise<int&> p0(boost::allocator_arg, test_allocator<int>()); in main()
60 boost::promise<int&> p(boost::allocator_arg, test_allocator<int>()); in main()
80 boost::promise<void> p0(boost::allocator_arg, test_allocator<void>()); in main()
81 boost::promise<void> p(boost::allocator_arg, test_allocator<void>()); in main()
Duse_allocator_pass.cpp33 …BOOST_STATIC_ASSERT_MSG((boost::csbl::uses_allocator<boost::promise<int>, test_allocator<int> >::v… in main()
34 …BOOST_STATIC_ASSERT_MSG((boost::csbl::uses_allocator<boost::promise<int&>, test_allocator<int&> >:… in main()
35 …BOOST_STATIC_ASSERT_MSG((boost::csbl::uses_allocator<boost::promise<void>, test_allocator<void> >:… in main()
Dalloc_ctor_pass.cpp32 boost::promise<int> p(boost::allocator_arg, test_allocator<int>()); in main()
40 boost::promise<int&> p(boost::allocator_arg, test_allocator<int>()); in main()
48 boost::promise<void> p(boost::allocator_arg, test_allocator<void>()); in main()
Dmove_ctor_pass.cpp36 boost::promise<int> p0(boost::allocator_arg, test_allocator<int>()); in main()
60 boost::promise<int&> p0(boost::allocator_arg, test_allocator<int>()); in main()
79 boost::promise<void> p0(boost::allocator_arg, test_allocator<void>()); in main()
/third_party/boost/libs/thread/test/sync/futures/packaged_task/
Dalloc_ctor_pass.cpp106 test_allocator<A>(), BOOST_THREAD_MAKE_RV_REF(A(5))); in main()
124 test_allocator<A>(), a); in main()
140 test_allocator<A>(), a); in main()
153 test_allocator<A>(), fct); in main()
163 test_allocator<A>(), &lfct); in main()
Duse_allocator_pass.cpp41 …:uses_allocator<boost::packaged_task<BOOST_THREAD_DETAIL_SIGNATURE>, test_allocator<double> >::val… in main()
/third_party/boost/libs/beast/test/beast/core/
Dflat_buffer.cpp45 using a_t = test::test_allocator<char, in testSpecialMembers()
49 using a_neq_t = test::test_allocator<char, in testSpecialMembers()
170 using na_t = test::test_allocator<char, in testSpecialMembers()
182 using na_t = test::test_allocator<char, in testSpecialMembers()
195 using pocma_t = test::test_allocator<char, in testSpecialMembers()
206 using pocma_t = test::test_allocator<char, in testSpecialMembers()
232 using pocca_t = test::test_allocator<char, in testSpecialMembers()
242 using pocca_t = test::test_allocator<char, in testSpecialMembers()
341 using na_t = test::test_allocator<char, in testSpecialMembers()
Dmulti_buffer.cpp176 using equal_t = test::test_allocator<char, in testMembers()
180 using unequal_t = test::test_allocator<char, in testMembers()
296 using na_t = test::test_allocator<char, in testMembers()
309 using pocma_t = test::test_allocator<char, in testMembers()
320 using pocma_t = test::test_allocator<char, in testMembers()
346 using pocca_t = test::test_allocator<char, in testMembers()
356 using pocca_t = test::test_allocator<char, in testMembers()
619 using pocs_t = test::test_allocator<char, in testMembers()
641 using pocs_t = test::test_allocator<char, in testMembers()
/third_party/boost/libs/thread/test/sync/futures/shared_future/
Ddtor_pass.cpp38 boost::promise<T> p(boost::allocator_arg, test_allocator<T>()); in main()
52 boost::promise<T> p(boost::allocator_arg, test_allocator<int>()); in main()
66 boost::promise<T> p(boost::allocator_arg, test_allocator<T>()); in main()
/third_party/boost/libs/thread/test/sync/futures/future/
Ddtor_pass.cpp38 boost::promise<T> p(boost::allocator_arg, test_allocator<T>()); in main()
52 boost::promise<T> p(boost::allocator_arg, test_allocator<int>()); in main()
66 boost::promise<T> p(boost::allocator_arg, test_allocator<T>()); in main()
/third_party/boost/libs/beast/test/beast/http/
Dfields.cpp32 class test_allocator class in boost::beast::http::fields_test
37 test_allocator() noexcept(false) {} in test_allocator() function in boost::beast::http::fields_test::test_allocator
40 std::enable_if<!std::is_same<test_allocator, U>::value>::type>
41 test_allocator(test_allocator<U> const&) noexcept {} in test_allocator() function in boost::beast::http::fields_test::test_allocator
58 operator==(test_allocator<T> const&, test_allocator<U> const&) noexcept in operator ==()
66 operator!=(test_allocator<T> const& x, test_allocator<U> const& y) noexcept in operator !=()
72 using test_fields = basic_fields<test_allocator<char>>;
131 using equal_t = test::test_allocator<char, in testMembers()
135 using unequal_t = test::test_allocator<char, in testMembers()
232 using pocma_t = test::test_allocator<char, in testMembers()
[all …]
/third_party/boost/libs/config/test/
Dboost_has_part_alloc.ipp28 int test_allocator(const T& i)
61 return test_allocator(0);
Dboost_no_std_allocator.ipp28 int test_allocator(const T& i)
80 return test_allocator(0);
/third_party/boost/libs/lexical_cast/test/
Dlexical_cast_test.cpp86 void test_allocator();
122 suite->add(BOOST_TEST_CASE(&test_allocator)); in init_unit_test_suite()
501 void test_allocator() in test_allocator() function
/third_party/boost/libs/beast/
DCHANGELOG.md3376 * Add test_allocator to extras/test