sandbox
Loading...
Searching...
No Matches
sbx::containers::compressed_pair< First, Second > Class Template Referencefinal
Inheritance diagram for sbx::containers::compressed_pair< First, Second >:
sbx::containers::detail::compressed_pair_element< First, 0u > sbx::containers::detail::compressed_pair_element< Second, 1u >

Public Types

using first_type = First
 
using second_type = Second
 

Public Member Functions

constexpr compressed_pair (const compressed_pair &other)=default
 
constexpr compressed_pair (compressed_pair &&other) noexcept=default
 
template<typename Arg , typename Other >
constexpr compressed_pair (Arg &&arg, Other &&other) noexcept(std::is_nothrow_constructible_v< first_base, Arg > &&std::is_nothrow_constructible_v< second_base, Other >)
 
template<typename... Args, typename... Other>
constexpr compressed_pair (std::piecewise_construct_t, std::tuple< Args... > args, std::tuple< Other... > other) noexcept(std::is_nothrow_constructible_v< first_base, Args... > &&std::is_nothrow_constructible_v< second_base, Other... >)
 
constexpr compressed_pairoperator= (const compressed_pair &other)=default
 
constexpr compressed_pairoperator= (compressed_pair &&other) noexcept=default
 
constexpr auto first () noexcept -> first_type &
 
constexpr auto first () const noexcept -> const first_type &
 
constexpr auto second () noexcept -> second_type &
 
constexpr auto second () const noexcept -> const second_type &
 
constexpr void swap (compressed_pair &other) noexcept
 
template<std::size_t Index>
constexpr auto get () noexcept -> decltype(auto)
 
template<std::size_t Index>
constexpr auto get () const noexcept -> decltype(auto)
 

Member Function Documentation

◆ get()

template<typename First , typename Second >
template<std::size_t Index>
constexpr auto sbx::containers::compressed_pair< First, Second >::get ( ) const -> decltype(auto)
inlineconstexprnoexcept


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