comparison DEPENDENCIES/generic/include/boost/icl/map.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
190 explicit map(const element_type& key_value_pair): base_type::map() 190 explicit map(const element_type& key_value_pair): base_type::map()
191 { 191 {
192 insert(key_value_pair); 192 insert(key_value_pair);
193 } 193 }
194 194
195 # ifndef BOOST_ICL_NO_CXX11_RVALUE_REFERENCES
196 //==========================================================================
197 //= Move semantics
198 //==========================================================================
199
200 map(map&& src)
201 : base_type(boost::move(src))
202 {
203 BOOST_CONCEPT_ASSERT((DefaultConstructibleConcept<DomainT>));
204 BOOST_CONCEPT_ASSERT((LessThanComparableConcept<DomainT>));
205 BOOST_CONCEPT_ASSERT((DefaultConstructibleConcept<CodomainT>));
206 BOOST_CONCEPT_ASSERT((EqualComparableConcept<CodomainT>));
207 }
208
209 map& operator = (map src)
210 {
211 base_type::operator=(boost::move(src));
212 return *this;
213 }
214 //==========================================================================
215 # else
216
195 map& operator = (const map& src) 217 map& operator = (const map& src)
196 { 218 {
197 base_type::operator=(src); 219 base_type::operator=(src);
198 return *this; 220 return *this;
199 } 221 }
200 222
201 # ifndef BOOST_ICL_NO_CXX11_RVALUE_REFERENCES
202 //==========================================================================
203 //= Move semantics
204 //==========================================================================
205
206 map(map&& src)
207 : base_type(boost::move(src))
208 {
209 BOOST_CONCEPT_ASSERT((DefaultConstructibleConcept<DomainT>));
210 BOOST_CONCEPT_ASSERT((LessThanComparableConcept<DomainT>));
211 BOOST_CONCEPT_ASSERT((DefaultConstructibleConcept<CodomainT>));
212 BOOST_CONCEPT_ASSERT((EqualComparableConcept<CodomainT>));
213 }
214
215 map& operator = (map&& src)
216 {
217 base_type::operator=(src);
218 return *this;
219 }
220 //==========================================================================
221 # endif // BOOST_ICL_NO_CXX11_RVALUE_REFERENCES 223 # endif // BOOST_ICL_NO_CXX11_RVALUE_REFERENCES
222 224
223 void swap(map& src) { base_type::swap(src); } 225 void swap(map& src) { base_type::swap(src); }
224 226
225 //========================================================================== 227 //==========================================================================