GDB (xrefs)
Namespaces | Functions
selftests::array_view_tests Namespace Reference

Namespaces

 no_slicing
 

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 ()
 
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 ()
 

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 164 of file array-view-selftests.c.

Referenced by run_tests().

◆ check_convertible()

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

Definition at line 56 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 ( )
static

Definition at line 143 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 ( )
static

Definition at line 126 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 187 of file array-view-selftests.c.

Referenced by run_tests().

◆ check_op_subscript() [1/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 209 of file array-view-selftests.c.

Referenced by run_tests().

◆ check_op_subscript() [2/2]

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

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

◆ check_ptr_ptr_ctor()

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

◆ check_ptr_ptr_mixed_cv()

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

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

References gdb::array_view< T >::empty(), and SELF_CHECK.

Referenced by run_tests().

◆ check_ptr_size_ctor()

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

◆ check_ptr_size_ctor2()

void selftests::array_view_tests::check_ptr_size_ctor2 ( )

◆ check_range_for()

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

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

References SELF_CHECK, and type.

◆ is_convertible()

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

◆ require_not_constructible()

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

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

◆ run_tests()

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