header_utils
Loading...
Searching...
No Matches
ghassanpl::xf Namespace Reference

Contains functions that return functors which transform and return their inputs somehow; appropriate for not-in-place transformation functions (e.g. std::transform). More...

Functions

constexpr auto identity () noexcept
template<typename T>
constexpr auto cast_to () noexcept
template<typename T>
constexpr auto dynamic_cast_to () noexcept
template<typename T>
constexpr auto constructed_as () noexcept
constexpr auto called () noexcept
template<typename T>
constexpr auto added_to (T &&other) noexcept
template<typename T>
constexpr auto subtracted_from (T &&other) noexcept
template<typename T>
constexpr auto decremented_by (T &&other) noexcept
template<typename T>
constexpr auto divided_by (T &&other) noexcept
template<typename T>
constexpr auto overed_by (T &&other) noexcept
template<typename T>
constexpr auto modulo_by (T &&other) noexcept
template<typename T>
constexpr auto multiplied_by (T &&other) noexcept
constexpr auto complemented () noexcept
constexpr auto negated () noexcept
constexpr auto bit_inverted () noexcept
template<typename T>
constexpr auto bit_anded_with (T &&other) noexcept
template<typename T>
constexpr auto bit_ored_with (T &&other) noexcept
template<typename T>
constexpr auto bit_xored_with (T &&other) noexcept
template<typename T>
constexpr auto shifted_left_by (T &&other) noexcept
template<typename T>
constexpr auto shifted_right_by (T &&other) noexcept
template<typename T>
constexpr auto field (T &&field_ptr) noexcept
template<typename T>
constexpr auto as_span () noexcept

Variables

constexpr auto identity_l

Detailed Description

Contains functions that return functors which transform and return their inputs somehow; appropriate for not-in-place transformation functions (e.g. std::transform).

Function Documentation

◆ added_to()

template<typename T>
auto ghassanpl::xf::added_to ( T && other)
nodiscardconstexprnoexcept

Definition at line 266 of file functional.h.

◆ as_span()

template<typename T>
auto ghassanpl::xf::as_span ( )
nodiscardconstexprnoexcept

Definition at line 34 of file span.h.

◆ bit_anded_with()

template<typename T>
auto ghassanpl::xf::bit_anded_with ( T && other)
nodiscardconstexprnoexcept

Definition at line 278 of file functional.h.

◆ bit_inverted()

auto ghassanpl::xf::bit_inverted ( )
nodiscardconstexprnoexcept

Definition at line 277 of file functional.h.

◆ bit_ored_with()

template<typename T>
auto ghassanpl::xf::bit_ored_with ( T && other)
nodiscardconstexprnoexcept

Definition at line 279 of file functional.h.

◆ bit_xored_with()

template<typename T>
auto ghassanpl::xf::bit_xored_with ( T && other)
nodiscardconstexprnoexcept

Definition at line 280 of file functional.h.

◆ called()

auto ghassanpl::xf::called ( )
nodiscardconstexprnoexcept

Definition at line 264 of file functional.h.

◆ cast_to()

template<typename T>
auto ghassanpl::xf::cast_to ( )
nodiscardconstexprnoexcept

Definition at line 258 of file functional.h.

◆ complemented()

auto ghassanpl::xf::complemented ( )
nodiscardconstexprnoexcept

Definition at line 273 of file functional.h.

◆ constructed_as()

template<typename T>
auto ghassanpl::xf::constructed_as ( )
nodiscardconstexprnoexcept

Definition at line 263 of file functional.h.

◆ decremented_by()

template<typename T>
auto ghassanpl::xf::decremented_by ( T && other)
nodiscardconstexprnoexcept

Definition at line 268 of file functional.h.

◆ divided_by()

template<typename T>
auto ghassanpl::xf::divided_by ( T && other)
nodiscardconstexprnoexcept

Definition at line 269 of file functional.h.

◆ dynamic_cast_to()

template<typename T>
auto ghassanpl::xf::dynamic_cast_to ( )
nodiscardconstexprnoexcept

Definition at line 259 of file functional.h.

◆ field()

template<typename T>
auto ghassanpl::xf::field ( T && field_ptr)
nodiscardconstexprnoexcept

Definition at line 284 of file functional.h.

◆ identity()

auto ghassanpl::xf::identity ( )
nodiscardconstexprnoexcept

Definition at line 255 of file functional.h.

◆ modulo_by()

template<typename T>
auto ghassanpl::xf::modulo_by ( T && other)
nodiscardconstexprnoexcept

Definition at line 271 of file functional.h.

◆ multiplied_by()

template<typename T>
auto ghassanpl::xf::multiplied_by ( T && other)
nodiscardconstexprnoexcept

Definition at line 272 of file functional.h.

◆ negated()

auto ghassanpl::xf::negated ( )
nodiscardconstexprnoexcept

Definition at line 275 of file functional.h.

◆ overed_by()

template<typename T>
auto ghassanpl::xf::overed_by ( T && other)
nodiscardconstexprnoexcept

Definition at line 270 of file functional.h.

◆ shifted_left_by()

template<typename T>
auto ghassanpl::xf::shifted_left_by ( T && other)
nodiscardconstexprnoexcept

Definition at line 281 of file functional.h.

◆ shifted_right_by()

template<typename T>
auto ghassanpl::xf::shifted_right_by ( T && other)
nodiscardconstexprnoexcept

Definition at line 282 of file functional.h.

◆ subtracted_from()

template<typename T>
auto ghassanpl::xf::subtracted_from ( T && other)
nodiscardconstexprnoexcept

Definition at line 267 of file functional.h.

Variable Documentation

◆ identity_l

auto ghassanpl::xf::identity_l
constexpr

Definition at line 256 of file functional.h.