MySQL 9.6.0
Source Code Documentation
enumeration_utils.h File Reference

Experimental API header. More...

#include <string>
#include <utility>
#include "mysql/utils/return_status.h"

Go to the source code of this file.

Namespaces

namespace  mysql
 
namespace  mysql::utils
 

Concepts

concept  mysql::utils::Is_enum
 true if Enum_t is an enumeration type (scoped or not).
 

Functions

template<Is_enum Enum_type>
constexpr decltype(auto) mysql::utils::to_underlying (Enum_type enum_value)
 Helper function that converts enum type to underlying integer type. More...
 
template<Is_enum Enum_type>
constexpr Enum_type mysql::utils::enum_max ()
 Template function that returns maximum valid constant that can appear in the enumeration type. More...
 
template<Is_enum Enum_type>
constexpr std::pair< Enum_type, Return_status > mysql::utils::to_enumeration (std::integral auto value)
 Helper function that converts value of enumeration underlying type into enumeration type constant. More...
 

Detailed Description

Experimental API header.