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< T, Enable > Struct Template Reference

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

Description

template<typename T, typename Enable = void>
struct gmx::test::detail::FormatterVariant< T, Enable >

Single-component variant for a formatting callable for variables of type T.

When the user wants to supply a formatting function for the name of a GoogleTest parameters of an arbitrary non-enum type, a callable taking a parameter of type T is required. This variant can always contain it, whether it is a function, functor, or lambda.

Public Types

using Variant = std::variant< std::function< std::string(T)>>
 

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