Gromacs  2025.0-dev-20241009-5c23d5f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types
gmx::test::detail::FormatterVariant< Enum, typename std::enable_if_t< std::is_enum_v< Enum > > > Struct Template Reference

#include <testutils/include/testutils/naming.h>

Description

template<typename Enum>
struct gmx::test::detail::FormatterVariant< Enum, typename std::enable_if_t< std::is_enum_v< Enum > > >

Specialization for formatting function of variables whose type is an enum.

When the user wants to use an enum as the type of a GoogleTest test parameter, they must choose a class enum and can choose to supply either a formatting callable or a matching EnumerationArray, and this variant can contain either case.

Public Types

using Variant = std::variant< std::function< std::string(Enum)>, EnumerationArray< Enum, const char * >>
 

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