StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
pair.hxx File Reference
#include <StormByte/safe/hash.hxx>
#include <StormByte/type_traits.hxx>
#include <StormByte/visibility.h>
#include <compare>
#include <cstddef>
#include <functional>
#include <span>
#include <tuple>
#include <type_traits>
#include <utility>
#include <StormByte/safe/pair.txx>
Include dependency graph for pair.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StormByte::Safe::Pair< First, Second >
 std::pair whose members keep their own Safe storage. More...
class  StormByte::Safe::PairReference< First, Second, SecondReference >
 Tuple-like proxy for an immutable first value and callback-backed second value. More...
struct  StormByte::Type::IsSafe< Safe::Pair< First, Second > >
 Recognizes a pair of already safe values. More...
struct  StormByte::Type::IsMaybeSafe< Safe::Pair< First, Second > >
 Propagates conditional safety when either member is conditionally safe. More...
struct  StormByte::Type::IsSafeValue< Safe::Pair< First, Second > >
 Admits a pair of safe values as a collection value. More...
struct  std::tuple_size< StormByte::Safe::Pair< First, Second > >
 Tuple arity of a Safe pair. More...
struct  std::tuple_size< StormByte::Safe::PairReference< First, Second, SecondReference > >
 Tuple arity of a Safe pair-reference proxy. More...
struct  std::tuple_element< Index, StormByte::Safe::Pair< First, Second > >
 Tuple element type of a Safe pair. More...
struct  std::tuple_element< Index, StormByte::Safe::PairReference< First, Second, SecondReference > >
 Tuple element type of a Safe pair-reference proxy. More...
struct  StormByte::Safe::Hash< StormByte::Safe::Pair< First, Second > >
 Cross-module hash of a StormByte::Safe::Pair. More...
struct  std::hash< StormByte::Safe::Pair< First, Second > >
 Hash of a StormByte::Safe::Pair for an STL unordered container in this module. More...

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
namespace  StormByte::Safe
 Owned values that cross a DLL without the caller's CRT.
namespace  StormByte::Type
 Named concepts and small type utilities used across the suite.

Functions

template<std::size_t Index, Type::SafeValue First, Type::SafeValue Second>
requires (Index == 0)
constexpr First & StormByte::Safe::get (Pair< First, Second > &pair) noexcept
 Access the first pair member.
template<std::size_t Index, Type::SafeValue First, Type::SafeValue Second>
requires (Index == 1)
constexpr Second & StormByte::Safe::get (Pair< First, Second > &pair) noexcept
 Access the second pair member.
template<std::size_t Index, Type::SafeValue First, Type::SafeValue Second>
requires (Index == 0)
constexpr const First & StormByte::Safe::get (const Pair< First, Second > &pair) noexcept
 Access the first pair member through a const pair.
template<std::size_t Index, Type::SafeValue First, Type::SafeValue Second>
requires (Index == 1)
constexpr const Second & StormByte::Safe::get (const Pair< First, Second > &pair) noexcept
 Access the second pair member through a const pair.
template<std::size_t Index, Type::SafeValue First, Type::SafeValue Second>
requires (Index == 0)
constexpr First && StormByte::Safe::get (Pair< First, Second > &&pair) noexcept
 Move-access the first pair member.
template<std::size_t Index, Type::SafeValue First, Type::SafeValue Second>
requires (Index == 1)
constexpr Second && StormByte::Safe::get (Pair< First, Second > &&pair) noexcept
 Move-access the second pair member.
template<std::size_t Index, Type::SafeValue First, Type::SafeValue Second>
requires (Index == 0)
constexpr const First && StormByte::Safe::get (const Pair< First, Second > &&pair) noexcept
 Read the first member from a const rvalue pair.
template<std::size_t Index, Type::SafeValue First, Type::SafeValue Second>
requires (Index == 1)
constexpr const Second && StormByte::Safe::get (const Pair< First, Second > &&pair) noexcept
 Read the second member from a const rvalue pair.