bux API Reference 1.11.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
bux::C_ErrorOrIndex Struct Reference

#include <EZArgs.h>

Public Member Functions

 C_ErrorOrIndex (const std::string &error, std::integral auto flagErrInd)
 
 C_ErrorOrIndex (const std::string &help)
 
 C_ErrorOrIndex (std::integral auto flagStartInd)
 
 operator bool () const
 
size_t index () const
 
std::string message () const
 

Public Attributes

std::string m_message
 
std::optional< size_t > m_optIndex
 

Detailed Description

Definition at line 22 of file EZArgs.h.

Constructor & Destructor Documentation

◆ C_ErrorOrIndex() [1/3]

bux::C_ErrorOrIndex::C_ErrorOrIndex ( const std::string & error,
std::integral auto flagErrInd )
inline

Definition at line 29 of file EZArgs.h.

References m_message, and m_optIndex.

◆ C_ErrorOrIndex() [2/3]

bux::C_ErrorOrIndex::C_ErrorOrIndex ( const std::string & help)
inline

Definition at line 30 of file EZArgs.h.

References m_message.

◆ C_ErrorOrIndex() [3/3]

bux::C_ErrorOrIndex::C_ErrorOrIndex ( std::integral auto flagStartInd)
inline

Definition at line 31 of file EZArgs.h.

References m_optIndex.

Member Function Documentation

◆ index()

size_t bux::C_ErrorOrIndex::index ( ) const
inline

Definition at line 33 of file EZArgs.h.

References m_optIndex.

◆ message()

std::string bux::C_ErrorOrIndex::message ( ) const
Examples
test/smoke_ezargs.cpp.

Definition at line 10 of file EZArgs.cpp.

References m_message, and m_optIndex.

◆ operator bool()

bux::C_ErrorOrIndex::operator bool ( ) const
inline

Definition at line 32 of file EZArgs.h.

References m_message.

Member Data Documentation

◆ m_message

std::string bux::C_ErrorOrIndex::m_message

Definition at line 25 of file EZArgs.h.

Referenced by C_ErrorOrIndex(), C_ErrorOrIndex(), message(), and operator bool().

◆ m_optIndex

std::optional<size_t> bux::C_ErrorOrIndex::m_optIndex

Definition at line 26 of file EZArgs.h.

Referenced by C_ErrorOrIndex(), C_ErrorOrIndex(), index(), and message().


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