File ColorTree.hpp changed (mode: 100644) (index 38502ed..6ae0c7d) |
... |
... |
public: |
145 |
145 |
template <std::size_t N> |
template <std::size_t N> |
146 |
146 |
ColorTree(const wchar_t (&text)[N]) : text(text, text + N - 1) |
ColorTree(const wchar_t (&text)[N]) : text(text, text + N - 1) |
147 |
147 |
{ } |
{ } |
|
148 |
|
// Constructs a leaf node with text specified as `wchar_t` array. |
|
149 |
|
ColorTree(const wchar_t text[]) : text(text) |
|
150 |
|
{ } |
148 |
151 |
// Constructs a leaf node from text specified as `std::array<wchar_t, N>`. |
// Constructs a leaf node from text specified as `std::array<wchar_t, N>`. |
149 |
152 |
template <std::size_t N> |
template <std::size_t N> |
150 |
153 |
ColorTree(const std::array<wchar_t, N> &text) : text(text.data()) |
ColorTree(const std::array<wchar_t, N> &text) : text(text.data()) |