comparison DEPENDENCIES/generic/include/boost/bimap/bimap.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
43 43
44 44
45 #ifndef BOOST_BIMAP_BIMAP_HPP 45 #ifndef BOOST_BIMAP_BIMAP_HPP
46 #define BOOST_BIMAP_BIMAP_HPP 46 #define BOOST_BIMAP_BIMAP_HPP
47 47
48 #if defined(_MSC_VER) && (_MSC_VER>=1200) 48 #if defined(_MSC_VER)
49 #pragma once 49 #pragma once
50 #endif 50 #endif
51 51
52 #include <boost/config.hpp> 52 #include <boost/config.hpp>
53 #include <boost/bimap/detail/user_interface_config.hpp> 53 #include <boost/bimap/detail/user_interface_config.hpp>
340 // Support for tags 340 // Support for tags
341 341
342 template< class Tag, class IteratorType > 342 template< class Tag, class IteratorType >
343 BOOST_DEDUCED_TYPENAME ::boost::bimaps::support:: 343 BOOST_DEDUCED_TYPENAME ::boost::bimaps::support::
344 iterator_type_by<Tag,bimap>::type 344 iterator_type_by<Tag,bimap>::type
345 project(IteratorType iter 345 project(IteratorType iter)
346 BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(Tag))
347 { 346 {
348 return core.template project<Tag>(iter.base()); 347 return core.template project<Tag>(iter.base());
349 } 348 }
350 349
351 template< class Tag, class IteratorType > 350 template< class Tag, class IteratorType >
352 BOOST_DEDUCED_TYPENAME ::boost::bimaps::support:: 351 BOOST_DEDUCED_TYPENAME ::boost::bimaps::support::
353 const_iterator_type_by<Tag,bimap>::type 352 const_iterator_type_by<Tag,bimap>::type
354 project(IteratorType iter 353 project(IteratorType iter) const
355 BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(Tag)) const
356 { 354 {
357 return core.template project<Tag>(iter.base()); 355 return core.template project<Tag>(iter.base());
358 } 356 }
359 357
360 template< class Tag > 358 template< class Tag >
367 private: map_by() {} 365 private: map_by() {}
368 }; 366 };
369 367
370 template< class Tag > 368 template< class Tag >
371 BOOST_DEDUCED_TYPENAME ::boost::bimaps::support:: 369 BOOST_DEDUCED_TYPENAME ::boost::bimaps::support::
372 map_type_by<Tag,bimap>::type & 370 map_type_by<Tag,bimap>::type &by()
373 by(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag))
374 { 371 {
375 return ::boost::bimaps::support::map_by<Tag>(*this); 372 return ::boost::bimaps::support::map_by<Tag>(*this);
376 } 373 }
377 374
378 template< class Tag > 375 template< class Tag >
379 const BOOST_DEDUCED_TYPENAME ::boost::bimaps::support:: 376 const BOOST_DEDUCED_TYPENAME ::boost::bimaps::support::
380 map_type_by<Tag,bimap>::type & 377 map_type_by<Tag,bimap>::type &by() const
381 by(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag)) const
382 { 378 {
383 return ::boost::bimaps::support::map_by<Tag>(*this); 379 return ::boost::bimaps::support::map_by<Tag>(*this);
384 } 380 }
385 381
386 382