MySQL 9.1.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
 

Functions

template<typename 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<typename 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<typename Enum_type , typename Integral_type >
constexpr std::pair< Enum_type, Return_status > mysql::utils::to_enumeration (Integral_type value)
 Helper function that converts value of enumeration underlying type into enumeration type constant. More...
 

Detailed Description

Experimental API header.