kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Tests::Std Namespace Reference

Classes

struct  MyType
class  ReflectionTest_display_string_of_Test
 Because we need at least one discoverable runtime test per unit. More...

Functions

consteval void throw_invalid_argument ()
 Unconditionally throw a std::invalid_argument exception.
consteval bool test_catch_exception ()
consteval bool test_escaping_exception ()
consteval bool test_display_string_of ()

Function Documentation

◆ test_catch_exception()

bool Tests::Std::test_catch_exception ( )
consteval
Test
Catching an exception in consteval works.

Definition at line 27 of file test_constexpr_exception.cpp.

References test_catch_exception(), and throw_invalid_argument().

◆ test_display_string_of()

bool Tests::Std::test_display_string_of ( )
consteval
Test
Check that std::meta::display_string_of works as expected. It was introduced in [8].

Definition at line 24 of file test_reflection.cpp.

References test_display_string_of().

◆ test_escaping_exception()

bool Tests::Std::test_escaping_exception ( )
consteval
Test
An exception escaping a constant-expression generates a compiler error, as stated in [9].

Definition at line 10 of file test_constexpr_exception.failure.cpp.

References test_escaping_exception().

◆ throw_invalid_argument()

void Tests::Std::throw_invalid_argument ( )
consteval

Unconditionally throw a std::invalid_argument exception.

Definition at line 22 of file test_constexpr_exception.cpp.

References throw_invalid_argument().