Gromacs  2024.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::StringFormatter Class Reference

#include <gromacs/utility/stringutil.h>

Description

Function object that wraps a call to formatString() that expects a single conversion argument, for use with algorithms.

Public Member Functions

 StringFormatter (const char *format)
 Constructor. More...
 
template<typename T >
std::string operator() (const T &value) const
 Implements the formatting functionality.
 

Constructor & Destructor Documentation

gmx::StringFormatter::StringFormatter ( const char *  format)
inlineexplicit

Constructor.

Parameters
[in]formatThe printf-style format string that will be applied to convert values of type T to string. Exactly one argument to the conversion specification(s) in format is supported.

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