Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::copy_n_detail Namespace Reference

Function Documentation

◆ convert_size_to_integer() [1/14]

auto std::copy_n_detail::convert_size_to_integer ( bool const value) -> uint8_t
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [2/14]

auto std::copy_n_detail::convert_size_to_integer ( char const value) -> conditional_t<is_signed_v<char>, int8_t, uint8_t>
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [3/14]

auto std::copy_n_detail::convert_size_to_integer ( double const value) -> std::int64_t
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns the input value cast to an integer.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [4/14]

auto std::copy_n_detail::convert_size_to_integer ( float const value) -> std::int64_t
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns the input value cast to an integer.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [5/14]

auto std::copy_n_detail::convert_size_to_integer ( int const value) -> int
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [6/14]

auto std::copy_n_detail::convert_size_to_integer ( long const value) -> long
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [7/14]

auto std::copy_n_detail::convert_size_to_integer ( long long const value) -> long long
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [8/14]

auto std::copy_n_detail::convert_size_to_integer ( short const value) -> short
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [9/14]

auto std::copy_n_detail::convert_size_to_integer ( signed char const value) -> int8_t
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [10/14]

auto std::copy_n_detail::convert_size_to_integer ( unsigned char const value) -> uint8_t
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [11/14]

auto std::copy_n_detail::convert_size_to_integer ( unsigned const value) -> unsigned
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [12/14]

auto std::copy_n_detail::convert_size_to_integer ( unsigned long const value) -> unsigned long
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [13/14]

auto std::copy_n_detail::convert_size_to_integer ( unsigned long long const value) -> unsigned long long
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

◆ convert_size_to_integer() [14/14]

auto std::copy_n_detail::convert_size_to_integer ( unsigned short const value) -> unsigned short
inlineconstexprnoexcept

Overloaded internal function to handle Size types that are "convertible to an integer" rather than being an integer themselves. Each overload acceps a specific type, and returns an integer with the same value.

Parameters
valueThe value to convert
Returns
The value as an integer

Variable Documentation

◆ is_convertible_to_integral_v

template<typename T, typename = arene::base::constraints<>>
bool std::copy_n_detail::is_convertible_to_integral_v = false
externconstexpr

Type trait to check if a type is implicitly convertible to an integral type. The value is true if so, false otherwise.

Template Parameters
TThe type to check

◆ is_convertible_to_integral_v< T, arene::base::constraints< > >

template<typename T>
bool std::copy_n_detail::is_convertible_to_integral_v< T, arene::base::constraints< > > = true
externconstexpr

Type trait to check if a type is implicitly convertible to an integral type. The value is true if so, false otherwise.

Template Parameters
TThe type to check

◆ is_nothrow_convertible_to_integral_v

template<typename T, typename = arene::base::constraints<>>
bool std::copy_n_detail::is_nothrow_convertible_to_integral_v = false
externconstexpr

Type trait to check if a type is implicitly convertible to an integral type without throwing. The value is true if so, false otherwise.

Template Parameters
TThe type to check

◆ is_nothrow_convertible_to_integral_v< T, arene::base::constraints< enable_if_t< is_convertible_to_integral_v< T > > > >

Initial value:
=
constexpr auto convert_size_to_integer(bool const value) noexcept -> uint8_t
Overloaded internal function to handle Size types that are "convertible to an integer" rather than be...
Definition copy_n.hpp:32
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...

Type trait to check if a type is implicitly convertible to an integral type without throwing. The value is true if so, false otherwise.

Template Parameters
TThe type to check