Botan 3.14.1
Crypto and TLS for C&
strong_type.h File Reference

Public Header. More...

#include <botan/concepts.h>
#include <botan/strong_type_helpers.h>
#include <iosfwd>
#include <span>
#include <string>

Go to the source code of this file.

Classes

class  Botan::detail::Container_Strong_Adapter_Base< T >
struct  Botan::EnableArithmeticWithPlainNumber
class  Botan::Strong< T, TagTypeT, Capabilities >
class  Botan::detail::Strong_Adapter< T >
class  Botan::detail::Strong_Adapter< T >
class  Botan::detail::Strong_Base< T >
class  Botan::StrongSpan< T >

Namespaces

namespace  Botan
namespace  Botan::concepts
namespace  Botan::detail

Concepts

concept  Botan::concepts::streamable
concept  Botan::concepts::strong_type_with_capability

Functions

template<std::integral T, typename... Tags>
constexpr decltype(auto) Botan::operator& (Strong< T, Tags... > a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator& (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator& (T1 a, Strong< T2, Tags... > b)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator&= (Strong< T, Tags... > &a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr auto Botan::operator&= (Strong< T1, Tags... > &a, T2 b)
template<std::integral T, typename... Tags>
constexpr decltype(auto) Botan::operator* (Strong< T, Tags... > a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator* (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator* (T1 a, Strong< T2, Tags... > b)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator*= (Strong< T, Tags... > &a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr auto Botan::operator*= (Strong< T1, Tags... > &a, T2 b)
template<std::integral T, typename... Tags>
constexpr decltype(auto) Botan::operator+ (Strong< T, Tags... > a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator+ (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator+ (T1 a, Strong< T2, Tags... > b)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator++ (Strong< T, Tags... > &a)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator++ (Strong< T, Tags... > &a, int)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator+= (Strong< T, Tags... > &a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr auto Botan::operator+= (Strong< T1, Tags... > &a, T2 b)
template<std::integral T, typename... Tags>
constexpr decltype(auto) Botan::operator- (Strong< T, Tags... > a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator- (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator- (T1 a, Strong< T2, Tags... > b)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator-- (Strong< T, Tags... > &a)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator-- (Strong< T, Tags... > &a, int)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator-= (Strong< T, Tags... > &a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr auto Botan::operator-= (Strong< T1, Tags... > &a, T2 b)
template<std::integral T, typename... Tags>
constexpr decltype(auto) Botan::operator/ (Strong< T, Tags... > a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator/ (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator/ (T1 a, Strong< T2, Tags... > b)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator/= (Strong< T, Tags... > &a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr auto Botan::operator/= (Strong< T1, Tags... > &a, T2 b)
template<typename T, typename... Tags>
decltype(auto) Botan::operator<< (std::ostream &os, const Strong< T, Tags... > &v)
template<std::integral T, typename... Tags>
constexpr decltype(auto) Botan::operator<< (Strong< T, Tags... > a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator<< (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator<< (T1 a, Strong< T2, Tags... > b)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator<<= (Strong< T, Tags... > &a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr auto Botan::operator<<= (Strong< T1, Tags... > &a, T2 b)
template<typename T, typename... Tags>
auto Botan::operator<=> (const Strong< T, Tags... > &lhs, const Strong< T, Tags... > &rhs)
template<std::integral T1, std::integral T2, typename... Tags>
auto Botan::operator<=> (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
auto Botan::operator<=> (T1 a, Strong< T2, Tags... > b)
template<typename T, typename... Tags>
bool Botan::operator== (const Strong< T, Tags... > &lhs, const Strong< T, Tags... > &rhs)
template<std::integral T1, std::integral T2, typename... Tags>
auto Botan::operator== (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
auto Botan::operator== (T1 a, Strong< T2, Tags... > b)
template<std::integral T, typename... Tags>
constexpr decltype(auto) Botan::operator>> (Strong< T, Tags... > a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator>> (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator>> (T1 a, Strong< T2, Tags... > b)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator>>= (Strong< T, Tags... > &a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr auto Botan::operator>>= (Strong< T1, Tags... > &a, T2 b)
template<std::integral T, typename... Tags>
constexpr decltype(auto) Botan::operator^ (Strong< T, Tags... > a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator^ (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator^ (T1 a, Strong< T2, Tags... > b)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator^= (Strong< T, Tags... > &a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr auto Botan::operator^= (Strong< T1, Tags... > &a, T2 b)
template<std::integral T, typename... Tags>
constexpr decltype(auto) Botan::operator| (Strong< T, Tags... > a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator| (Strong< T1, Tags... > a, T2 b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr decltype(auto) Botan::operator| (T1 a, Strong< T2, Tags... > b)
template<std::integral T, typename... Tags>
constexpr auto Botan::operator|= (Strong< T, Tags... > &a, Strong< T, Tags... > b)
template<std::integral T1, std::integral T2, typename... Tags>
constexpr auto Botan::operator|= (Strong< T1, Tags... > &a, T2 b)

Variables

template<typename CapabilityT, typename... Tags>
constexpr bool Botan::detail::has_capability = (std::is_same_v<CapabilityT, Tags> || ...)

Detailed Description

Public Header.

Definition in file strong_type.h.