Botan 3.11.0
Crypto and TLS for C&
stl_util.h File Reference

Internal Header. More...

#include <botan/assert.h>
#include <variant>
#include <vector>

Go to the source code of this file.

Classes

struct  Botan::overloaded< Ts >

Namespaces

namespace  Botan

Functions

template<typename GeneralVariantT, typename SpecialT>
requires (std::is_constructible_v<GeneralVariantT, std::decay_t<SpecialT>>)
constexpr GeneralVariantT Botan::generalize_to (SpecialT &&specific)
 Converts a given variant into another variant-ish whose type states are a super set of the given variant.
template<typename GeneralVariantT, typename... SpecialTs>
constexpr GeneralVariantT Botan::generalize_to (std::variant< SpecialTs... > specific)
 Converts a given variant into another variant-ish whose type states are a super set of the given variant.
template<typename... Alts, typename... Ts>
constexpr bool Botan::holds_any_of (const std::variant< Ts... > &v) noexcept
template<typename GeneralVariantT, typename SpecialT>
constexpr bool Botan::is_generalizable_to (const SpecialT &) noexcept
template<typename GeneralVariantT, typename... SpecialTs>
constexpr bool Botan::is_generalizable_to (const std::variant< SpecialTs... > &) noexcept
template<typename T, typename Pred>
void Botan::map_remove_if (Pred pred, T &assoc)
template<typename T>
constexpr auto Botan::out_ptr (T &outptr) noexcept
template<class... Ts>
 Botan::overloaded (Ts...) -> overloaded< Ts... >
template<typename RetT, typename KeyT, typename ReducerT>
requires std::invocable<ReducerT&, RetT, const KeyT&> && std::convertible_to<std::invoke_result_t<ReducerT&, RetT, const KeyT&>, RetT>
RetT Botan::reduce (const std::vector< KeyT > &keys, RetT acc, ReducerT reducer)
template<typename T>
requires std::is_enum_v<T>
auto Botan::to_underlying (T e) noexcept
template<typename T, typename V>
bool Botan::value_exists (const std::vector< T > &vec, const V &val)

Detailed Description

Internal Header.

Definition in file stl_util.h.