A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/std__backport_8hpp_source.html below:

NCBI C++ ToolKit: include/corelib/impl/std_backport.hpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef CORELIB___STDBACKPORT__HPP 2 #define CORELIB___STDBACKPORT__HPP 38 #include <type_traits> 44 #ifndef __cpp_lib_remove_cvref 47  typedef

std::remove_cv_t<std::remove_reference_t<T>>

type

;

54 #ifndef __cpp_lib_to_underlying 55  template

<

class

Enum >

56

constexpr std::underlying_type_t<Enum>

to_underlying

( Enum e ) noexcept

58  return static_cast<

std::underlying_type_t<Enum>

>

(e);

64 #ifndef __cpp_lib_hardware_interference_size 74  template

<

typename

T>

77  template

<

typename

T>

80  template

<

typename

T, std::

size_t

N>

83  template

<

typename

T, std::

size_t

N>

84  struct array_size

<

T

[

N

]>: std::integral_constant<size_t, N> {};

86  template

<

typename

T>

92  template

<

typename

T>

95  template

<

typename

T>

98  template

<

typename

T>

101  template

<

typename

T,

size_t

N>

106  template

<

typename

T,

size_t

N>

111  template

<

typename

T>

114  template

<

typename T

,

119

-> std::array<_Elem, N>

128  return to_array_impl

(std::forward<T>(

a

), std::make_index_sequence<N>{});

130  template

<

typename

T,

size_t

N>

139  size_t N

=

sizeof

...(TArgs),

140  typename

_Tuple=

typename

std::enable_if<(

N

>1),

141

std::tuple<TArgs...>>

::type

,

142  typename T

= std::tuple_element_t<0, _Tuple>

146  T

_array[] = { std::forward<TArgs>(args)... };

147  return to_array_impl

(_array, std::make_index_sequence<N>{});

153 #ifndef __cpp_lib_to_array 161  template

<

typename

T,

size_t

N>

constexpr auto make_array(TArgs &&...args)

constexpr auto to_array_impl(T &&a, std::index_sequence< I... >) -> std::array< _Elem, N >

constexpr size_t get_array_size(T &&)

typename array_elem< T >::type array_elem_t

const GenericPointer< typename T::ValueType > T2 value

constexpr size_t hardware_destructive_interference_size

constexpr std::underlying_type_t< Enum > to_underlying(Enum e) noexcept

constexpr auto to_array(T &&a)

typename remove_cvref< T >::type remove_cvref_t

constexpr size_t hardware_constructive_interference_size

std::remove_cv_t< std::remove_reference_t< T > > type


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4