tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
bad_variant_access Struct Reference

etl::bad_variant_access is the type of the exception thrown in the following situations: (1) etl::get(etl::variant) called with an index or type that does not match the currently active alternative. (2) etl::visit called to visit a variant that is valueless_by_exception More...

#include <bad_variant_access.hpp>

Inheritance diagram for bad_variant_access:
exception

Public Member Functions

constexpr bad_variant_access ()=default
 
constexpr bad_variant_access (char const *what)
 
- Public Member Functions inherited from exception
constexpr exception ()=default
 
constexpr exception (char const *what)
 
constexpr auto what () const noexcept -> char const *
 

Detailed Description

etl::bad_variant_access is the type of the exception thrown in the following situations: (1) etl::get(etl::variant) called with an index or type that does not match the currently active alternative. (2) etl::visit called to visit a variant that is valueless_by_exception

Constructor & Destructor Documentation

◆ bad_variant_access() [1/2]

bad_variant_access ( )
constexprdefault

◆ bad_variant_access() [2/2]

bad_variant_access ( char const * what)
inlineexplicitconstexpr

The documentation for this struct was generated from the following file: