AnySet Documentation
Public Member Functions | List of all members
te::CompressedPair< T, U > Struct Template Reference

Detailed Description

template<class T, class U>
struct te::CompressedPair< T, U >

Compressed pair class like boost::compressed_pair. Hand-rolled to avoid the small dependency.

#include <CompressedPair.h>

Public Member Functions

template<class Left , class Right , class = std::enable_if_t<std::is_same_v<std::decay_t<Left>, T>>, class = std::enable_if_t<std::is_same_v<std::decay_t<Right>, U>>>
 CompressedPair (Left &&left, Right &&right)
 
const U & second () const &
 
const U && second () const &&
 
U & second () &
 
U && second () &&
 
void swap (CompressedPair &other) noexcept(std::is_nothrow_swappable_v< T > and std::is_nothrow_swappable_v< U >)
 
- Public Member Functions inherited from te::detail::CompressedPairBase< T >
template<class ... Args>
 CompressedPairBase (Args &&... args)
 
const T & first () const &
 
const T && first () const &&
 
T & first () &
 
T && first () &&
 
Inheritance diagram for te::CompressedPair< T, U >:
Inheritance graph
[legend]
Collaboration diagram for te::CompressedPair< T, U >:
Collaboration graph
[legend]

The documentation for this struct was generated from the following file: