OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::identifier_name< M > Class Template Reference

Helper template for unpacking of identifier into a character string. More...

#include <eagine/identifier.hpp>

Public Types

using size_type = span_size_t
 Alias for the string lenght type.
 
using value_type = char
 Alias for the string character type.
 
using iterator = const char *
 Alias for the iterator type.
 
using const_iterator = iterator
 Alias for the const iterator type.
 

Public Member Functions

auto data () const noexcept
 Returns the pointer to the start of the unpacked identifier name.
 
auto size () const noexcept
 Returns the length of the unpacked character string.
 
auto begin () const -> const_iterator
 Returns an iterator to the start of the unpacked identifier name.
 
auto end () const -> const_iterator
 Returns an iterator past the end of the unpacked identifier name.
 
auto view () const -> string_view
 Returns a string view covering the unpacked identifier name.
 
auto str () const -> std::string
 Returns the unpacked identifier name as a standard string.
 
auto str (std::string &s) const -> std::string &
 Assigns the unpacked identifier name into a standard string. More...
 

Detailed Description

template<std::size_t M>
class eagine::identifier_name< M >

Helper template for unpacking of identifier into a character string.

See also
indentifier
Note
Do not use directly. Use identifier.

Member Function Documentation

◆ str()

template<std::size_t M>
auto eagine::identifier_name< M >::str ( std::string &  s) const -> std::string&
inline

Assigns the unpacked identifier name into a standard string.

Returns
s

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).