rsl 1.1.0
ROS Support Library
Loading...
Searching...
No Matches
rsl::StaticString< capacity > Class Template Reference

Fixed capacity string with an implicit conversion to std::string_view. Capacity is specified as a template parameter. At runtime one may use up to the specified capacity. More...

#include <static_string.hpp>

Public Member Functions

 StaticString ()=default
 Construct an empty string.
 
 StaticString (std::string const &string)
 Construct from a std::string.
 
auto begin () const
 Get a const begin iterator.
 
auto end () const
 Get a const end iterator.
 
 operator std::string_view () const
 Implicit conversion to std::string_view.
 

Detailed Description

template<size_t capacity>
class rsl::StaticString< capacity >

Fixed capacity string with an implicit conversion to std::string_view. Capacity is specified as a template parameter. At runtime one may use up to the specified capacity.


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