MySQL 8.0.40
Source Code Documentation
stdx::impl Namespace Reference

Classes

struct  has_element_type
 
struct  has_element_type< T, std::void_t< typename T::element_type > >
 
struct  has_reference
 
struct  has_reference< T, std::void_t< typename T::reference > >
 
struct  has_value_type
 
struct  has_value_type< T, std::void_t< typename stdx::remove_cvref_t< T >::value_type > >
 
struct  indirectly_readable_traits_array
 
struct  indirectly_readable_traits_array< T, true >
 
struct  indirectly_readable_traits_member_element_type
 
struct  indirectly_readable_traits_member_element_type< T, true >
 
struct  indirectly_readable_traits_member_value_type
 
struct  indirectly_readable_traits_member_value_type< T, true >
 
struct  indirectly_readable_traits_pointer
 
struct  indirectly_readable_traits_pointer< T, true >
 
struct  is_to_stream_writable
 
struct  is_to_stream_writable< S, T, std::void_t< decltype(std::declval< S & >()<< std::declval< T >())> >
 
struct  iter_reference
 
struct  iter_reference< T, false >
 
struct  iter_reference< T, true >
 

Functions

template<class T >
constexpr std::enable_if_t< sizeof(T)==1, T > bswap (T t) noexcept
 
template<class T >
constexpr std::enable_if_t< sizeof(T)==2, T > bswap (T t) noexcept
 
template<class T >
constexpr std::enable_if_t< sizeof(T)==4, T > bswap (T t) noexcept
 
template<class T >
constexpr std::enable_if_t< sizeof(T)==8, T > bswap (T t) noexcept
 
template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > countl_zero_linear (T x) noexcept
 
template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > countl_zero_logarithmic (T x) noexcept
 
template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > countl_zero_builtin (T x) noexcept
 
template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > countr_zero_linear (T x) noexcept
 
template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > countr_zero_logarithmic (T x) noexcept
 
template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > countr_zero_builtin (T x) noexcept
 
template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > popcount_constant (T v) noexcept
 popcount. More...
 
template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > popcount_builtin (T v) noexcept
 popcount. More...
 

Function Documentation

◆ bswap() [1/4]

template<class T >
constexpr std::enable_if_t< sizeof(T)==1, T > stdx::impl::bswap ( t)
constexprnoexcept

◆ bswap() [2/4]

template<class T >
constexpr std::enable_if_t< sizeof(T)==2, T > stdx::impl::bswap ( t)
constexprnoexcept

◆ bswap() [3/4]

template<class T >
constexpr std::enable_if_t< sizeof(T)==4, T > stdx::impl::bswap ( t)
constexprnoexcept

◆ bswap() [4/4]

template<class T >
constexpr std::enable_if_t< sizeof(T)==8, T > stdx::impl::bswap ( t)
constexprnoexcept

◆ countl_zero_builtin()

template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > stdx::impl::countl_zero_builtin ( x)
inlineconstexprnoexcept

◆ countl_zero_linear()

template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > stdx::impl::countl_zero_linear ( x)
inlineconstexprnoexcept

◆ countl_zero_logarithmic()

template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > stdx::impl::countl_zero_logarithmic ( x)
inlineconstexprnoexcept

◆ countr_zero_builtin()

template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > stdx::impl::countr_zero_builtin ( x)
inlineconstexprnoexcept

◆ countr_zero_linear()

template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > stdx::impl::countr_zero_linear ( x)
inlineconstexprnoexcept

◆ countr_zero_logarithmic()

template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > stdx::impl::countr_zero_logarithmic ( x)
inlineconstexprnoexcept

◆ popcount_builtin()

template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > stdx::impl::popcount_builtin ( v)
constexprnoexcept

popcount.

uses builtin's if available, falls back to popcount_constant() if not available.

◆ popcount_constant()

template<class T >
constexpr std::enable_if_t< std::is_unsigned< T >::value, int > stdx::impl::popcount_constant ( v)
constexprnoexcept

popcount.

O(1) version, as fast as builtin popcount