From 963e39f71635b11f8efd4981730bff52ba629f44 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 30 Apr 2023 20:42:49 +0100 Subject: [PATCH] Removed redundant 'const' qualifiers in non-type template parameters --- include/etl/alignment.h | 18 +++++------ include/etl/binary.h | 12 +++---- include/etl/bip_buffer_spsc_atomic.h | 2 +- include/etl/bloom_filter.h | 2 +- include/etl/callback_service.h | 10 +++--- include/etl/combinations.h | 4 +-- include/etl/delegate_service.h | 18 +++++------ include/etl/generators/smallest_generator.h | 6 ++-- .../etl/generators/type_select_generator.h | 4 +-- .../etl/generators/variant_pool_generator.h | 2 +- include/etl/generic_pool.h | 14 ++++---- include/etl/intrusive_links.h | 6 ++-- include/etl/log.h | 4 +-- include/etl/memory_model.h | 2 +- include/etl/pearson.h | 2 +- include/etl/permutations.h | 8 ++--- include/etl/poly_span.h | 8 ++--- include/etl/power.h | 16 +++++----- include/etl/private/bitset_legacy.h | 16 +++++----- include/etl/private/variant_legacy.h | 2 +- include/etl/queue.h | 2 +- include/etl/queue_mpmc_mutex.h | 2 +- include/etl/queue_spsc_atomic.h | 2 +- include/etl/ratio.h | 6 ++-- include/etl/smallest.h | 6 ++-- include/etl/span.h | 8 ++--- include/etl/string.h | 6 ++-- include/etl/type_select.h | 32 +++++++++---------- include/etl/u16string.h | 6 ++-- include/etl/u32string.h | 6 ++-- include/etl/variant_pool.h | 2 +- include/etl/wstring.h | 6 ++-- 32 files changed, 120 insertions(+), 120 deletions(-) diff --git a/include/etl/alignment.h b/include/etl/alignment.h index 324358c0..19bc3151 100644 --- a/include/etl/alignment.h +++ b/include/etl/alignment.h @@ -105,12 +105,12 @@ namespace etl //*************************************************************************** // Matcher. //*************************************************************************** - template + template class type_with_alignment_matcher; // Matching alignment. - template + template class type_with_alignment_matcher { public: @@ -119,7 +119,7 @@ namespace etl }; // Non-matching alignment. - template + template class type_with_alignment_matcher { public: @@ -128,7 +128,7 @@ namespace etl }; // Non-matching alignment, none left. - template + template class type_with_alignment_matcher { public: @@ -139,7 +139,7 @@ namespace etl //*************************************************************************** // Helper. //*************************************************************************** - template class type_with_alignment_helper { @@ -153,7 +153,7 @@ namespace etl /// Gets a type that has the same as the specified alignment. ///\ingroup alignment //*************************************************************************** - template + template class type_with_alignment { public: @@ -170,7 +170,7 @@ namespace etl /// LENGTH should be determined in terms of sizeof() ///\ingroup alignment //*************************************************************************** - template + template struct aligned_storage { struct type @@ -261,7 +261,7 @@ namespace etl }; #if ETL_USING_CPP11 - template + template using aligned_storage_t = typename aligned_storage::type; #endif diff --git a/include/etl/binary.h b/include/etl/binary.h index 617bc49a..e9478298 100644 --- a/include/etl/binary.h +++ b/include/etl/binary.h @@ -85,7 +85,7 @@ namespace etl ///\ingroup binary //*************************************************************************** /// Definition for non-zero NBITS. - template + template struct max_value_for_nbits { typedef typename etl::smallest_uint_for_bits::type value_type; @@ -100,11 +100,11 @@ namespace etl static ETL_CONSTANT value_type value = 0; }; - template + template ETL_CONSTANT typename max_value_for_nbits::value_type max_value_for_nbits::value; #if ETL_USING_CPP17 - template + template inline constexpr typename etl::max_value_for_nbits::value_type max_value_for_nbits_v = max_value_for_nbits::value; #endif @@ -387,18 +387,18 @@ namespace etl /// Starts from LSB. ///\ingroup binary //*************************************************************************** - template + template struct bit { typedef typename etl::smallest_uint_for_bits::type value_type; static ETL_CONSTANT value_type value = value_type(1) << POSITION; }; - template + template ETL_CONSTANT typename bit::value_type bit::value; #if ETL_USING_CPP17 - template + template inline constexpr typename bit::value_type bit_v = bit::value; #endif diff --git a/include/etl/bip_buffer_spsc_atomic.h b/include/etl/bip_buffer_spsc_atomic.h index 51d54612..5333dc68 100644 --- a/include/etl/bip_buffer_spsc_atomic.h +++ b/include/etl/bip_buffer_spsc_atomic.h @@ -86,7 +86,7 @@ namespace etl //*************************************************************************** /// The common base for a bip_buffer_spsc_atomic_base. //*************************************************************************** - template + template class bip_buffer_spsc_atomic_base { public: diff --git a/include/etl/bloom_filter.h b/include/etl/bloom_filter.h index bb8b3ae1..711a151b 100644 --- a/include/etl/bloom_filter.h +++ b/include/etl/bloom_filter.h @@ -69,7 +69,7 @@ namespace etl /// The hash classes must define argument_type. ///\ingroup bloom_filter //*************************************************************************** - template diff --git a/include/etl/callback_service.h b/include/etl/callback_service.h index f79f8af7..0549368c 100644 --- a/include/etl/callback_service.h +++ b/include/etl/callback_service.h @@ -45,7 +45,7 @@ namespace etl /// \tparam OFFSET The lowest callback id value. /// The callback ids must range between OFFSET and OFFSET + RANGE - 1. //*************************************************************************** - template + template class callback_service { public: @@ -67,7 +67,7 @@ namespace etl /// \tparam ID The id of the callback. /// \param callback Reference to the callback. //************************************************************************* - template + template void register_callback(etl::ifunction& callback) { ETL_STATIC_ASSERT(ID < (OFFSET + RANGE), "Callback Id out of range"); @@ -82,7 +82,7 @@ namespace etl /// \param id Id of the callback. /// \param callback Reference to the callback. //************************************************************************* - void register_callback(const size_t id, etl::ifunction& callback) + void register_callback(size_t id, etl::ifunction& callback) { if ((id >= OFFSET) && (id < (OFFSET + RANGE))) { @@ -104,7 +104,7 @@ namespace etl /// Compile time assert if the id is out of range. /// \tparam ID The id of the callback. //************************************************************************* - template + template void callback() { ETL_STATIC_ASSERT(ID < (OFFSET + RANGE), "Callback Id out of range"); @@ -117,7 +117,7 @@ namespace etl /// Executes the callback function for the index. /// \param id Id of the callback. //************************************************************************* - void callback(const size_t id) + void callback(size_t id) { if ((id >= OFFSET) && (id < (OFFSET + RANGE))) { diff --git a/include/etl/combinations.h b/include/etl/combinations.h index dbb5c224..fdb32eca 100644 --- a/include/etl/combinations.h +++ b/include/etl/combinations.h @@ -45,13 +45,13 @@ namespace etl ///\ingroup combinations /// Calculates combinations. //*************************************************************************** - template + template struct combinations { static ETL_CONSTANT size_t value = etl::permutations::value / etl::factorial::value; }; - template + template ETL_CONSTANT size_t combinations::value; #if ETL_USING_CPP17 diff --git a/include/etl/delegate_service.h b/include/etl/delegate_service.h index 7954ced4..2344e581 100644 --- a/include/etl/delegate_service.h +++ b/include/etl/delegate_service.h @@ -47,8 +47,8 @@ namespace etl /// The delegate ids must range between Offset and Offset + Range - 1. //*************************************************************************** #if ETL_USING_CPP11 && !defined(ETL_DELEGATE_FORCE_CPP03_IMPLEMENTATION) - template * Delegates = nullptr> class delegate_service { @@ -61,7 +61,7 @@ namespace etl /// Compile time assert if the id is out of range. /// \tparam Id The id of the delegate. //************************************************************************* - template + template void call() const { ETL_STATIC_ASSERT(Id < (Offset + Range), "Callback Id out of range"); @@ -74,7 +74,7 @@ namespace etl /// Executes the delegate function for the index. /// \param id Id of the delegate. //************************************************************************* - void call(const size_t id) const + void call(size_t id) const { if ((id >= Offset) && (id < (Offset + Range))) { @@ -96,8 +96,8 @@ namespace etl /// \tparam Offset The lowest delegate id value. /// The delegate ids must range between Offset and Offset + Range - 1. //*************************************************************************** - template + template #if ETL_USING_CPP11 && !defined(ETL_DELEGATE_FORCE_CPP03_IMPLEMENTATION) class delegate_service #else @@ -125,7 +125,7 @@ namespace etl /// \tparam Id The id of the delegate. /// \param delegate Reference to the delegate. //************************************************************************* - template + template void register_delegate(delegate_type callback) { ETL_STATIC_ASSERT(Id < (Offset + Range), "Callback Id out of range"); @@ -140,7 +140,7 @@ namespace etl /// \param id Id of the delegate. /// \param delegate Reference to the delegate. //************************************************************************* - void register_delegate(const size_t id, delegate_type callback) + void register_delegate(size_t id, delegate_type callback) { if ((id >= Offset) && (id < (Offset + Range))) { @@ -162,7 +162,7 @@ namespace etl /// Compile time assert if the id is out of range. /// \tparam Id The id of the delegate. //************************************************************************* - template + template void call() const { ETL_STATIC_ASSERT(Id < (Offset + Range), "Callback Id out of range"); diff --git a/include/etl/generators/smallest_generator.h b/include/etl/generators/smallest_generator.h index 8879b96a..2e1908c7 100644 --- a/include/etl/generators/smallest_generator.h +++ b/include/etl/generators/smallest_generator.h @@ -154,7 +154,7 @@ namespace etl cog.outl("private:") cog.outl("") cog.outl(" // Declaration.") - cog.outl(" template ") + cog.outl(" template ") cog.outl(" struct choose_type;") cog.outl("") cog.outl(" // Specialisation for 'true'.") @@ -226,7 +226,7 @@ namespace etl //************************************************************************* // Determine the type to hold the number of bits based on the index. //************************************************************************* - template + template struct best_fit_uint_type; //************************************************************************* @@ -270,7 +270,7 @@ namespace etl //************************************************************************* // Determine the type to hold the number of bits based on the index. //************************************************************************* - template + template struct best_fit_int_type; //************************************************************************* diff --git a/include/etl/generators/type_select_generator.h b/include/etl/generators/type_select_generator.h index a17deb0b..9ab0f808 100644 --- a/include/etl/generators/type_select_generator.h +++ b/include/etl/generators/type_select_generator.h @@ -116,7 +116,7 @@ namespace etl cog.outl("{") cog.outl("public:") cog.outl("") - cog.outl(" template ") + cog.outl(" template ") cog.outl(" struct select") cog.outl(" {") cog.outl(" typedef typename etl::conditional" % (s - 1)) cog.outl("{") cog.outl("public:") - cog.outl(" template ") + cog.outl(" template ") cog.outl(" struct select") cog.outl(" {") cog.outl(" typedef typename etl::conditional + template class generic_pool : public etl::ipool { public: @@ -194,13 +194,13 @@ namespace etl generic_pool& operator =(const generic_pool&) ETL_DELETE; }; - template + template ETL_CONSTANT size_t generic_pool::SIZE; - template + template ETL_CONSTANT size_t generic_pool::ALIGNMENT; - template + template ETL_CONSTANT size_t generic_pool::TYPE_SIZE; //************************************************************************* @@ -208,7 +208,7 @@ namespace etl /// The storage for the pool is supplied externally. ///\ingroup pool //************************************************************************* - template + template class generic_pool_ext : public etl::ipool { private: @@ -348,10 +348,10 @@ namespace etl generic_pool_ext& operator=(const generic_pool_ext&) ETL_DELETE; }; - template + template ETL_CONSTANT size_t generic_pool_ext::ALIGNMENT; - template + template ETL_CONSTANT size_t generic_pool_ext::TYPE_SIZE; } diff --git a/include/etl/intrusive_links.h b/include/etl/intrusive_links.h index c234c0d8..ff912c6e 100644 --- a/include/etl/intrusive_links.h +++ b/include/etl/intrusive_links.h @@ -83,7 +83,7 @@ namespace etl //*************************************************************************** /// A forward link. //*************************************************************************** - template + template struct forward_link { enum @@ -240,7 +240,7 @@ namespace etl //*************************************************************************** /// A bidirectional link. //*************************************************************************** - template + template struct bidirectional_link { enum @@ -497,7 +497,7 @@ namespace etl //*************************************************************************** /// A binary tree link. //*************************************************************************** - template + template struct tree_link { enum diff --git a/include/etl/log.h b/include/etl/log.h index e0490263..b492d5a8 100644 --- a/include/etl/log.h +++ b/include/etl/log.h @@ -94,7 +94,7 @@ namespace etl ///\ingroup log /// Calculates base 2 logs. //*************************************************************************** - template + template struct log2 { enum value_type @@ -112,7 +112,7 @@ namespace etl ///\ingroup log /// Calculates base 10 logs. //*************************************************************************** - template + template struct log10 { enum value_type diff --git a/include/etl/memory_model.h b/include/etl/memory_model.h index 4cf720f8..fbee968d 100644 --- a/include/etl/memory_model.h +++ b/include/etl/memory_model.h @@ -46,7 +46,7 @@ namespace etl ETL_USER_TYPE(MEMORY_MODEL_HUGE, 3) ETL_END_USER_TYPE(memory_model) - template + template struct size_type_lookup; template <> diff --git a/include/etl/pearson.h b/include/etl/pearson.h index 7d740fdd..29670706 100644 --- a/include/etl/pearson.h +++ b/include/etl/pearson.h @@ -56,7 +56,7 @@ namespace etl ///\tparam HASH_LENGTH The number of elements in the hash. /// \ingroup pearson //*************************************************************************** - template + template class pearson { public: diff --git a/include/etl/permutations.h b/include/etl/permutations.h index 12fcbec7..b1c41ab0 100644 --- a/include/etl/permutations.h +++ b/include/etl/permutations.h @@ -43,26 +43,26 @@ namespace etl ///\ingroup permutations /// Calculates permutations. //*************************************************************************** - template + template struct permutations { static ETL_CONSTANT size_t value = NV * permutations::value; }; - template + template ETL_CONSTANT size_t permutations::value; //*************************************************************************** /// Calculates permutations. /// Specialisation for KV == 0. //*************************************************************************** - template + template struct permutations { static ETL_CONSTANT size_t value = 1UL; }; - template + template ETL_CONSTANT size_t permutations::value; #if ETL_USING_CPP17 diff --git a/include/etl/poly_span.h b/include/etl/poly_span.h index 63de7e8b..68252561 100644 --- a/include/etl/poly_span.h +++ b/include/etl/poly_span.h @@ -544,7 +544,7 @@ namespace etl //************************************************************************* /// Obtains a poly_span that is a view from OFFSET over the next COUNT elements of this poly_span. //************************************************************************* - template + template ETL_NODISCARD ETL_CONSTEXPR etl::poly_span subspan() const ETL_NOEXCEPT { return (COUNT == etl::dynamic_extent) ? etl::poly_span(pbegin, OFFSET, Extent, element_size) @@ -554,7 +554,7 @@ namespace etl //************************************************************************* /// Obtains a poly_span that is a view from OFFSET over the next COUNT elements of this poly_span. //************************************************************************* - template + template etl::poly_span subspan() const { if (COUNT == etl::dynamic_extent) @@ -919,7 +919,7 @@ namespace etl //************************************************************************* /// Obtains a poly_span that is a view from OFFSET over the next COUNT elements of this poly_span. //************************************************************************* - template + template ETL_NODISCARD ETL_CONSTEXPR etl::poly_span subspan() const ETL_NOEXCEPT { return (COUNT == etl::dynamic_extent) ? etl::poly_span(pbegin, OFFSET, span_extent, element_size) @@ -929,7 +929,7 @@ namespace etl //************************************************************************* /// Obtains a poly_span that is a view from OFFSET over the next COUNT elements of this poly_span. //************************************************************************* - template + template etl::poly_span subspan() const { if (COUNT == etl::dynamic_extent) diff --git a/include/etl/power.h b/include/etl/power.h index 9ca4f0f0..9f217dba 100644 --- a/include/etl/power.h +++ b/include/etl/power.h @@ -57,13 +57,13 @@ namespace etl /// Calculates powers. ///\note Only supports positive N. //*************************************************************************** - template + template struct power { static ETL_CONSTANT private_power::type value = NV * power::value; }; - template + template ETL_CONSTANT private_power::type power::value; //*************************************************************************** @@ -71,13 +71,13 @@ namespace etl ///\note Only supports positive N. /// Specialisation for POWER == 0. //*************************************************************************** - template + template struct power { static ETL_CONSTANT private_power::type value = 1; }; - template + template ETL_CONSTANT private_power::type power::value; #if ETL_USING_CPP17 @@ -89,7 +89,7 @@ namespace etl ///\ingroup power /// Calculates the rounded up power of 2. //*************************************************************************** - template + template struct power_of_2_round_up { enum value_type @@ -121,7 +121,7 @@ namespace etl ///\ingroup power /// Calculates the rounded down power of 2. //*************************************************************************** - template + template struct power_of_2_round_down { enum value_type @@ -181,7 +181,7 @@ namespace etl ///\ingroup power /// Checks if N is a power of 2. //*************************************************************************** - template + template struct is_power_of_2 { static ETL_CONSTANT bool value = (NV & (NV - 1)) == 0; @@ -209,7 +209,7 @@ namespace etl static ETL_CONSTANT bool value = false; }; - template + template ETL_CONSTANT bool is_power_of_2::value; #if ETL_USING_CPP17 diff --git a/include/etl/private/bitset_legacy.h b/include/etl/private/bitset_legacy.h index e03135ce..a9309eb8 100644 --- a/include/etl/private/bitset_legacy.h +++ b/include/etl/private/bitset_legacy.h @@ -1086,7 +1086,7 @@ namespace etl ///\tparam MaxN The number of bits. ///\ingroup bitset //************************************************************************* - template + template class bitset : public etl::ibitset { @@ -1444,17 +1444,17 @@ namespace etl element_type data[Array_Size > 0U ? Array_Size : 1U]; }; - template + template ETL_CONSTANT size_t bitset::ALLOCATED_BITS; - template + template ETL_CONSTANT size_t bitset::Allocated_Bits; //*************************************************************************** /// operator & ///\ingroup bitset //*************************************************************************** - template + template bitset operator & (const bitset& lhs, const bitset& rhs) { bitset temp(lhs); @@ -1466,7 +1466,7 @@ namespace etl /// operator | ///\ingroup bitset //*************************************************************************** - template + template bitset operator | (const bitset& lhs, const bitset& rhs) { bitset temp(lhs); @@ -1478,7 +1478,7 @@ namespace etl /// operator ^ ///\ingroup bitset //*************************************************************************** - template + template bitset operator ^ (const bitset& lhs, const bitset& rhs) { bitset temp(lhs); @@ -1490,7 +1490,7 @@ namespace etl /// operator != ///\ingroup bitset //*************************************************************************** - template + template bool operator != (const bitset& lhs, const bitset& rhs) { return !(lhs == rhs); @@ -1500,7 +1500,7 @@ namespace etl //************************************************************************* /// swap //************************************************************************* -template +template void swap(etl::bitset& lhs, etl::bitset& rhs) { lhs.swap(rhs); diff --git a/include/etl/private/variant_legacy.h b/include/etl/private/variant_legacy.h index df0e9cd1..1743558e 100644 --- a/include/etl/private/variant_legacy.h +++ b/include/etl/private/variant_legacy.h @@ -65,7 +65,7 @@ namespace etl /// Placeholder for unused template parameters. /// This class is never instantiated. //************************************************************************* - template + template struct no_type { }; diff --git a/include/etl/queue.h b/include/etl/queue.h index 72b3a83e..b3521f39 100644 --- a/include/etl/queue.h +++ b/include/etl/queue.h @@ -103,7 +103,7 @@ namespace etl /// The base class for all queues. ///\ingroup queue //*************************************************************************** - template + template class queue_base { public: diff --git a/include/etl/queue_mpmc_mutex.h b/include/etl/queue_mpmc_mutex.h index 794c7f01..8c46df6b 100644 --- a/include/etl/queue_mpmc_mutex.h +++ b/include/etl/queue_mpmc_mutex.h @@ -48,7 +48,7 @@ SOFTWARE. namespace etl { - template + template class queue_mpmc_mutex_base { public: diff --git a/include/etl/queue_spsc_atomic.h b/include/etl/queue_spsc_atomic.h index e27bf41c..b19e2aac 100644 --- a/include/etl/queue_spsc_atomic.h +++ b/include/etl/queue_spsc_atomic.h @@ -47,7 +47,7 @@ SOFTWARE. namespace etl { - template + template class queue_spsc_atomic_base { public: diff --git a/include/etl/ratio.h b/include/etl/ratio.h index aa11939c..8c7fa81d 100644 --- a/include/etl/ratio.h +++ b/include/etl/ratio.h @@ -41,17 +41,17 @@ SOFTWARE. namespace etl { - template + template struct ratio { static ETL_CONSTANT intmax_t num = NUM; static ETL_CONSTANT intmax_t den = DEN; }; - template + template ETL_CONSTANT intmax_t ratio::num; - template + template ETL_CONSTANT intmax_t ratio::den; #if INT_MAX > INT32_MAX diff --git a/include/etl/smallest.h b/include/etl/smallest.h index 6843df5b..a3f1b2b5 100644 --- a/include/etl/smallest.h +++ b/include/etl/smallest.h @@ -137,7 +137,7 @@ namespace etl private: // Declaration. - template + template struct choose_type; // Specialisation for 'true'. @@ -196,7 +196,7 @@ namespace etl //************************************************************************* // Determine the type to hold the number of bits based on the index. //************************************************************************* - template + template struct best_fit_uint_type; //************************************************************************* @@ -240,7 +240,7 @@ namespace etl //************************************************************************* // Determine the type to hold the number of bits based on the index. //************************************************************************* - template + template struct best_fit_int_type; //************************************************************************* diff --git a/include/etl/span.h b/include/etl/span.h index 5c57ee79..a98985f8 100644 --- a/include/etl/span.h +++ b/include/etl/span.h @@ -403,7 +403,7 @@ namespace etl //************************************************************************* /// Obtains a span that is a view from OFFSET over the next COUNT elements of this span. //************************************************************************* - template + template ETL_NODISCARD ETL_CONSTEXPR etl::span subspan() const ETL_NOEXCEPT { @@ -414,7 +414,7 @@ namespace etl //************************************************************************* /// Obtains a span that is a view from OFFSET over the next COUNT elements of this span. //************************************************************************* - template + template etl::span subspan() const { if (COUNT == etl::dynamic_extent) @@ -809,7 +809,7 @@ namespace etl //************************************************************************* /// Obtains a span that is a view from OFFSET over the next COUNT elements of this span. //************************************************************************* - template + template ETL_NODISCARD ETL_CONSTEXPR etl::span subspan() const ETL_NOEXCEPT { @@ -820,7 +820,7 @@ namespace etl //************************************************************************* /// Obtains a span that is a view from OFFSET over the next COUNT elements of this span. //************************************************************************* - template + template etl::span subspan() const { if (COUNT == etl::dynamic_extent) diff --git a/include/etl/string.h b/include/etl/string.h index 04c52734..ef93f655 100644 --- a/include/etl/string.h +++ b/include/etl/string.h @@ -63,7 +63,7 @@ namespace etl ///\tparam MAX_SIZE_ The maximum number of elements that can be stored. ///\ingroup string //*************************************************************************** - template + template class string : public istring { public: @@ -463,7 +463,7 @@ namespace etl } }; - template + template struct hash > { size_t operator()(const etl::string& text) const @@ -496,7 +496,7 @@ namespace etl //*************************************************************************** /// Make string with max capacity from string literal or array //*************************************************************************** - template + template etl::string make_string_with_capacity(const char(&text)[SIZE]) { return etl::string(text, etl::strlen(text, SIZE)); diff --git a/include/etl/type_select.h b/include/etl/type_select.h index e07618b2..3fd22dcc 100644 --- a/include/etl/type_select.h +++ b/include/etl/type_select.h @@ -114,7 +114,7 @@ namespace etl { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional { public: - template + template struct select { typedef typename etl::conditional + template class u16string : public iu16string { public: @@ -443,7 +443,7 @@ namespace etl } }; - template + template struct hash > { size_t operator()(const etl::u16string& text) const @@ -476,7 +476,7 @@ namespace etl //*************************************************************************** /// Make string with max capacity from string literal or array //*************************************************************************** - template + template etl::u16string make_string_with_capacity(const char16_t(&text)[SIZE]) { return etl::u16string(text, etl::strlen(text, SIZE)); diff --git a/include/etl/u32string.h b/include/etl/u32string.h index 530d248e..aaa3a836 100644 --- a/include/etl/u32string.h +++ b/include/etl/u32string.h @@ -61,7 +61,7 @@ namespace etl ///\tparam MAX_SIZE_ The maximum number of elements that can be stored. ///\ingroup u32string //*************************************************************************** - template + template class u32string : public iu32string { public: @@ -443,7 +443,7 @@ namespace etl } }; - template + template struct hash > { size_t operator()(const etl::u32string& text) const @@ -476,7 +476,7 @@ namespace etl //*************************************************************************** /// Make string with max capacity from string literal or array //*************************************************************************** - template + template etl::u32string make_string_with_capacity(const char32_t(&text)[SIZE]) { return etl::u32string(text, etl::strlen(text, SIZE)); diff --git a/include/etl/variant_pool.h b/include/etl/variant_pool.h index c60bd144..0ae4f058 100644 --- a/include/etl/variant_pool.h +++ b/include/etl/variant_pool.h @@ -62,7 +62,7 @@ SOFTWARE. namespace etl { //*************************************************************************** - template + template class wstring : public iwstring { public: @@ -443,7 +443,7 @@ namespace etl } }; - template + template struct hash > { size_t operator()(const etl::wstring& text) const @@ -476,7 +476,7 @@ namespace etl //*************************************************************************** /// Make string with max capacity from string literal or array //*************************************************************************** - template + template etl::wstring make_string_with_capacity(const wchar_t(&text)[SIZE]) { return etl::wstring(text, etl::strlen(text, SIZE));