Home
last modified time | relevance | path

Searched refs:AlwaysEqual (Results 1 – 5 of 5) sorted by relevance

/third_party/boost/libs/multi_index/test/
Drooted_allocator.hpp23 template<typename T,bool Propagate,bool AlwaysEqual>
27 typedef boost::integral_constant<bool,AlwaysEqual> always_equal_type;
35 struct rebind{typedef rooted_allocator<U,Propagate,AlwaysEqual> other;};
40 rooted_allocator(const rooted_allocator<U,Propagate,AlwaysEqual>& x): in rooted_allocator()
44 bool operator==(const rooted_allocator<U,Propagate,AlwaysEqual>& x)const in operator ==()
45 {return AlwaysEqual?true:root==x.root;} in operator ==()
47 bool operator!=(const rooted_allocator<U,Propagate,AlwaysEqual>& x)const in operator !=()
51 bool comes_from(const rooted_allocator<U,Propagate,AlwaysEqual>& x)const in comes_from()
Dtest_alloc_awareness.cpp72 template<bool Propagate,bool AlwaysEqual>
77 typedef rooted_allocator<move_tracker,Propagate,AlwaysEqual> allocator; in test_allocator_awareness_for()
108 BOOST_TEST(AlwaysEqual==(&*c3.begin()==pfirst)); in test_allocator_awareness_for()
109 BOOST_TEST(!AlwaysEqual==(c3.begin()->move_cted)); in test_allocator_awareness_for()
118 const bool element_transfer=Propagate||AlwaysEqual; in test_allocator_awareness_for()
130 if(Propagate||AlwaysEqual){ in test_allocator_awareness_for()
/third_party/boost/libs/poly_collection/test/
Dtest_construction.cpp27 bool Propagate,bool AlwaysEqual,
35 std::integral_constant<bool,AlwaysEqual>>; in test_allocator_aware_construction()
74 if(AlwaysEqual) in test_allocator_aware_construction()
82 if(AlwaysEqual) in test_allocator_aware_construction()
91 if(AlwaysEqual)BOOST_TEST(d2==d3); in test_allocator_aware_construction()
103 if(!(Propagate&&!AlwaysEqual)) in test_allocator_aware_construction()
122 if(!((Propagate&&AlwaysEqual)||(!Propagate&&!AlwaysEqual))) in test_allocator_aware_construction()
137 if(!Propagate&&AlwaysEqual) in test_allocator_aware_construction()
146 if(Propagate||AlwaysEqual){ in test_allocator_aware_construction()
157 if(!((Propagate&&AlwaysEqual)||(!Propagate&&!AlwaysEqual))) in test_allocator_aware_construction()
[all …]
Dtest_utilities.hpp325 typename Propagate=std::true_type,typename AlwaysEqual=std::true_type
332 using is_always_equal=AlwaysEqual; /* for C++17 forward compatibility */
334 struct rebind{using other=rooted_allocator<U,Propagate,AlwaysEqual>;};
339 rooted_allocator(const rooted_allocator<U,Propagate,AlwaysEqual>& x): in rooted_allocator()
343 bool operator==(const rooted_allocator<U,Propagate,AlwaysEqual>& x)const in operator ==()
344 {return AlwaysEqual::value?true:root==x.root;} in operator ==()
346 bool operator!=(const rooted_allocator<U,Propagate,AlwaysEqual>& x)const in operator !=()
347 {return AlwaysEqual::value?false:root!=x.root;} in operator !=()
350 bool comes_from(const rooted_allocator<U,Propagate,AlwaysEqual>& x)const in comes_from()
/third_party/python/Lib/test/
Dtest_dict_version.py93 class AlwaysEqual: class
97 value1 = AlwaysEqual()
98 value2 = AlwaysEqual()