OS Manuals

cereal_common_detail_is_enum(3)

cereal::common_detail::is_enum< T > - Checks if a type is an enum.

cereal::common_detail::is_enum< T >(3) Library Functions Manual cereal::common_detail::is_enum< T >(3)

cereal::common_detail::is_enum< T > - Checks if a type is an enum.

#include </home/build/include/cereal/types/common.hpp>


using type = StrippedT
using base_type = typename enum_underlying_type<StrippedT, value>::type


static const bool value = std::is_enum<StrippedT>::value

class cereal::common_detail::is_enum< T >"Checks if a type is an enum.

This is needed over simply calling std::is_enum because the type traits checking at compile time will attempt to call something like load_minimal with a special NoConvertRef struct that wraps up the true type.

This will strip away any of that and also expose the true underlying type.

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 02:55:37 cereal

cereal 1.3.2-r7 · enterprise-packages · ingested 2026-10-26