| Home | Libraries | People | FAQ | More

## Class template compressed_pair<T, T>

boost::compressed_pair<T, T>

## Synopsis

    // In header: <boost/detail/compressed_pair.hpp>

    template<typename T>
    class compressed_pair<T, T> {
    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;

      // public member functions
      compressed_pair();
      compressed_pair(first_param_type, second_param_type);
      explicit compressed_pair(first_param_type);
      first_reference first();
      first_const_reference first() const;
      second_reference second();
      second_const_reference second() const;
      void swap(::boost::compressed_pair< T, T > &);
    };

## Description

### `compressed_pair` public member functions

1.     compressed_pair();

2.     compressed_pair(first_param_type x, second_param_type y);

3.     explicit compressed_pair(first_param_type x);

4.     first_reference first();

5.     first_const_reference first() const;

6.     second_reference second();

7.     second_const_reference second() const;

8.     void swap(::boost::compressed_pair< T, T > & y);