GDB (xrefs)
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Functions
selftests::array_view_tests Namespace Reference

Namespaces

namespace  no_slicing
 

Classes

struct  foo
 

Typedefs

template<typename T >
using StdArray1 = std::array<T, 1>
 

Functions

template<typename From , typename To >
static constexpr bool is_convertible ()
 
static constexpr bool check_convertible ()
 
static constexpr bool check_convertible_from_std_vector ()
 
static constexpr bool check_convertible_from_std_array ()
 
template<typename View , typename Container >
static bool check_container_view (const View &view, const Container &c)
 
template<typename View , typename Elem >
static bool check_elem_view (const View &view, const Elem &e)
 
template<typename View , typename = decltype (std::declval<View> ()[0] = std::declval<typename View::value_type> ())>
static bool check_op_subscript (const View &view)
 
static bool check_op_subscript (...)
 
template<typename T >
static void check_ptr_size_ctor ()
 
template<typename T , typename... Args>
static constexpr bool require_not_constructible ()
 
static void check_ptr_size_ctor2 ()
 
template<typename T >
static void check_ptr_ptr_ctor ()
 
static void check_ptr_ptr_mixed_cv ()
 
template<typename T >
static void check_range_for ()
 
static void run_tests ()
 
template<typename T >
void run_copy_test ()
 
static void run_copy_tests ()
 

Typedef Documentation

◆ StdArray1

template<typename T >
using selftests::array_view_tests::StdArray1 = std::array<T, 1>

Definition at line 142 of file array-view-selftests.c.

Function Documentation

◆ check_container_view()

template<typename View , typename Container >
static bool selftests::array_view_tests::check_container_view ( const View & view,
const Container & c )
static

Definition at line 190 of file array-view-selftests.c.

Referenced by run_tests().

◆ check_convertible()

static constexpr bool selftests::array_view_tests::check_convertible ( )
staticconstexpr

Definition at line 57 of file array-view-selftests.c.

References is_convertible().

◆ check_convertible_from_std_array()

static constexpr bool selftests::array_view_tests::check_convertible_from_std_array ( )
staticconstexpr

Definition at line 169 of file array-view-selftests.c.

References is_convertible().

◆ check_convertible_from_std_vector()

static constexpr bool selftests::array_view_tests::check_convertible_from_std_vector ( )
staticconstexpr

Definition at line 152 of file array-view-selftests.c.

References is_convertible().

◆ check_elem_view()

template<typename View , typename Elem >
static bool selftests::array_view_tests::check_elem_view ( const View & view,
const Elem & e )
static

Definition at line 213 of file array-view-selftests.c.

Referenced by run_tests().

◆ check_op_subscript() [1/2]

static bool selftests::array_view_tests::check_op_subscript ( ...)
static

Definition at line 244 of file array-view-selftests.c.

◆ check_op_subscript() [2/2]

template<typename View , typename = decltype (std::declval<View> ()[0] = std::declval<typename View::value_type> ())>
static bool selftests::array_view_tests::check_op_subscript ( const View & view)
static

Definition at line 235 of file array-view-selftests.c.

Referenced by run_tests().

◆ check_ptr_ptr_ctor()

template<typename T >
static void selftests::array_view_tests::check_ptr_ptr_ctor ( )
static

Definition at line 324 of file array-view-selftests.c.

◆ check_ptr_ptr_mixed_cv()

static void selftests::array_view_tests::check_ptr_ptr_mixed_cv ( )
static

Definition at line 345 of file array-view-selftests.c.

Referenced by run_tests().

◆ check_ptr_size_ctor()

template<typename T >
static void selftests::array_view_tests::check_ptr_size_ctor ( )
static

Definition at line 254 of file array-view-selftests.c.

◆ check_ptr_size_ctor2()

static void selftests::array_view_tests::check_ptr_size_ctor2 ( )
static

Definition at line 289 of file array-view-selftests.c.

References A.

Referenced by run_tests().

◆ check_range_for()

template<typename T >
static void selftests::array_view_tests::check_range_for ( )
static

Definition at line 361 of file array-view-selftests.c.

◆ is_convertible()

template<typename From , typename To >
static constexpr bool selftests::array_view_tests::is_convertible ( )
staticconstexpr

◆ require_not_constructible()

template<typename T , typename... Args>
static constexpr bool selftests::array_view_tests::require_not_constructible ( )
staticconstexpr

Definition at line 278 of file array-view-selftests.c.

References value.

◆ run_copy_test()

template<typename T >
void selftests::array_view_tests::run_copy_test ( )

Definition at line 551 of file array-view-selftests.c.

◆ run_copy_tests()

static void selftests::array_view_tests::run_copy_tests ( )
static

◆ run_tests()

static void selftests::array_view_tests::run_tests ( )
static