CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
to_string_utils.h File Reference

Utility functions for converting primitive types to strings. More...

#include <string>
#include <concepts>
+ Include dependency graph for to_string_utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CaptureMoment
 
namespace  CaptureMoment::Core
 Manages the lifecycle of a single IWorkingImage instance.
 
namespace  CaptureMoment::Core::utils
 

Concepts

concept  CaptureMoment::Core::utils::ToStringablePrimitive
 Concept defining types that can be converted to string using std::to_string. This includes integral types (int, long, etc.) and floating-point types (float, double). Note: std::string and bool are handled separately.
 

Functions

template<ToStringablePrimitive T>
std::string CaptureMoment::Core::utils::toString (T value)
 Converts a primitive value (integral or floating-point) to its string representation.
 
std::string CaptureMoment::Core::utils::toString (bool value)
 Converts a boolean value to its string representation ("true" or "false").
 
std::string CaptureMoment::Core::utils::toString (const std::string &value)
 Converts a string value to its string representation (identity operation).
 

Detailed Description

Utility functions for converting primitive types to strings.

Author
CaptureMoment Team
Date
2025

Definition in file to_string_utils.h.

CaptureMoment — footer