To Array#
Defined in namespace hal
#include <libhal-util/to_array.hpp>
- group ToArray
Functions
-
template<size_t N>
constexpr std::array<char, N + 1> to_array(std::string_view p_view)# Convert a string_view into a std::array of N number of characters.
Will always ensure that the array is null terminated
- Template Parameters:
N – - Size of the array
- Parameters:
p_view – - string to be placed into a char array
- Returns:
constexpr std::array<char, N + 1> - the char array object
-
template<size_t N>