Home | Libraries | People | FAQ | More |
boost::compressed_pair<T, T>
// In header: <boost/detail/compressed_pair.hpp> template<typename T> class compressed_pair<T, T> : private boost::details::compressed_pair_imp< T, T, ::boost::details::compressed_pair_switch< T, T, ::boost::is_same< remove_cv< T >::type, remove_cv< T >::type >::value, ::boost::details::compressed_pair_empty< T >::value, ::boost::details::compressed_pair_empty< T >::value >::value > { public: // types typedef T first_type; typedef T second_type; typedef call_traits< first_type >::param_type first_param_type; typedef call_traits< second_type >::param_type second_param_type; typedef call_traits< first_type >::reference first_reference; typedef call_traits< second_type >::reference second_reference; typedef call_traits< first_type >::const_reference first_const_reference; typedef call_traits< second_type >::const_reference second_const_reference; // construct/copy/destruct compressed_pair(); compressed_pair(first_param_type, second_param_type); explicit compressed_pair(first_param_type); // public member functions first_reference first(); first_const_reference first() const; second_reference second(); second_const_reference second() const; void swap(::boost::compressed_pair< T, T > &); };
compressed_pair
public member functionsfirst_reference first();
first_const_reference first() const;
second_reference second();
second_const_reference second() const;
void swap(::boost::compressed_pair< T, T > & y);