Function length

Summary

#include <include/flecs/addons/cpp/utils/string.hpp>

(1) std::size_t length()

(2) template <size_t N>
    static constexpr size_t length(char const (&)[N])

Function overload

Synopsis

#include <include/flecs/addons/cpp/utils/string.hpp>

std::size_t length()

Description

No description yet.

Source

Lines 96-98 in include/flecs/addons/cpp/utils/string.hpp.

std::size_t length() {
    return static_cast<std::size_t>(m_length);
}

Synopsis

#include <include/flecs/addons/cpp/utils/string.hpp>

template <size_t N>
static constexpr size_t length(char const (&)[N])

Description

No description yet.

Source

Lines 100-103 in include/flecs/addons/cpp/utils/string.hpp.

template <size_t N>
static constexpr size_t length( char const (&)[N] ) {
    return N - 1;
}