timemory 3.3.0
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
tim::argparse::argument_parser::arg_result Struct Reference

#include "timemory/utility/argparse.hpp"

+ Collaboration diagram for tim::argparse::argument_parser::arg_result:

Public Member Functions

 arg_result ()=default
 
 arg_result (std::string err) noexcept
 
 operator bool () const
 
const std::string & what () const
 

Friends

std::ostream & operator<< (std::ostream &os, const arg_result &dt)
 

Detailed Description

Definition at line 339 of file argparse.hpp.

Constructor & Destructor Documentation

◆ arg_result() [1/2]

tim::argparse::argument_parser::arg_result::arg_result ( )
default

◆ arg_result() [2/2]

tim::argparse::argument_parser::arg_result::arg_result ( std::string  err)
inlinenoexcept

Definition at line 342 of file argparse.hpp.

343 : m_error(true)
344 , m_what(std::move(err))
345 {}

Member Function Documentation

◆ operator bool()

tim::argparse::argument_parser::arg_result::operator bool ( ) const
inline

Definition at line 347 of file argparse.hpp.

347{ return m_error; }

◆ what()

const std::string & tim::argparse::argument_parser::arg_result::what ( ) const
inline

Definition at line 351 of file argparse.hpp.

351{ return m_what; }

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const arg_result dt 
)
friend

Definition at line 696 of file argparse.cpp.

698{
699 os << r.what();
700 return os;
701}
const std::string std::ostream * os

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