StormByte C++ Library 1.2.0
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
StormByte::Component Struct Reference

Wraps a module name for the component-prefixed Exception constructor. More...

#include <StormByte/exception.hxx>

Collaboration diagram for StormByte::Component:
Collaboration graph
[legend]

Public Member Functions

constexpr Component (std::string_view name) noexcept
 Wraps name.
 

Public Attributes

std::string_view name
 Module name inserted after StormByte::.
 

Detailed Description

Wraps a module name for the component-prefixed Exception constructor.

Exists only to disambiguate Exception(component, fmt, args...) from Exception(fmt, args...): with both taking a leading string-like parameter, overload resolution would otherwise silently prefer the fmt-only constructor and discard the component and message.

Constructor & Destructor Documentation

◆ Component()

constexpr StormByte::Component::Component ( std::string_view  name)
inlineexplicitconstexprnoexcept

Wraps name.

Parameters
nameModule name.

Member Data Documentation

◆ name

std::string_view StormByte::Component::name

Module name inserted after StormByte::.


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