From f660fedcaba5349aa78222f3e49eec44272a7caf Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Thu, 15 Oct 2020 14:42:09 +0200 Subject: qcontainerinfo: make variable templates inline Change-Id: I09d51f0a04a6dc12915ba6ad0b77af074238988d Reviewed-by: Ulf Hermann --- src/corelib/global/qcontainerinfo.h | 148 ++++++++++++++++++------------------ 1 file changed, 74 insertions(+), 74 deletions(-) (limited to 'src/corelib') diff --git a/src/corelib/global/qcontainerinfo.h b/src/corelib/global/qcontainerinfo.h index e0025fcef0..99a674fc71 100644 --- a/src/corelib/global/qcontainerinfo.h +++ b/src/corelib/global/qcontainerinfo.h @@ -68,189 +68,189 @@ QT_WARNING_PUSH QT_WARNING_DISABLE_CLANG("-Wunused-const-variable") template -constexpr bool has_value_type_v = false; +inline constexpr bool has_value_type_v = false; template -constexpr bool has_value_type_v>> = true; +inline constexpr bool has_value_type_v>> = true; template -constexpr bool has_key_type_v = false; +inline constexpr bool has_key_type_v = false; template -constexpr bool has_key_type_v>> = true; +inline constexpr bool has_key_type_v>> = true; template -constexpr bool has_mapped_type_v = false; +inline constexpr bool has_mapped_type_v = false; template -constexpr bool has_mapped_type_v>> = true; +inline constexpr bool has_mapped_type_v>> = true; template -constexpr bool has_size_v = false; +inline constexpr bool has_size_v = false; template -constexpr bool has_size_v> = true; +inline constexpr bool has_size_v> = true; template -constexpr bool has_clear_v = false; +inline constexpr bool has_clear_v = false; template -constexpr bool has_clear_v> = true; +inline constexpr bool has_clear_v> = true; template -constexpr bool has_at_index_v = false; +inline constexpr bool has_at_index_v = false; template -constexpr bool has_at_index_v> = true; +inline constexpr bool has_at_index_v> = true; template -constexpr bool has_at_key_v = false; +inline constexpr bool has_at_key_v = false; template -constexpr bool has_at_key_v()))>> = true; +inline constexpr bool has_at_key_v()))>> = true; template -constexpr bool can_get_at_index_v = false; +inline constexpr bool can_get_at_index_v = false; template -constexpr bool can_get_at_index_v(decltype(C()[0]))>> = true; +inline constexpr bool can_get_at_index_v(decltype(C()[0]))>> = true; template -constexpr bool can_set_at_index_v = false; +inline constexpr bool can_set_at_index_v = false; template -constexpr bool can_set_at_index_v())>> = true; +inline constexpr bool can_set_at_index_v())>> = true; template -constexpr bool has_push_front_v = false; +inline constexpr bool has_push_front_v = false; template -constexpr bool has_push_front_v()))>> = true; +inline constexpr bool has_push_front_v()))>> = true; template -constexpr bool has_push_back_v = false; +inline constexpr bool has_push_back_v = false; template -constexpr bool has_push_back_v()))>> = true; +inline constexpr bool has_push_back_v()))>> = true; template -constexpr bool has_insert_v = false; +inline constexpr bool has_insert_v = false; template -constexpr bool has_insert_v()))>> = true; +inline constexpr bool has_insert_v()))>> = true; template -constexpr bool has_pop_front_v = false; +inline constexpr bool has_pop_front_v = false; template -constexpr bool has_pop_front_v> = true; +inline constexpr bool has_pop_front_v> = true; template -constexpr bool has_pop_back_v = false; +inline constexpr bool has_pop_back_v = false; template -constexpr bool has_pop_back_v> = true; +inline constexpr bool has_pop_back_v> = true; template -constexpr bool has_iterator_v = false; +inline constexpr bool has_iterator_v = false; template -constexpr bool has_iterator_v>> = true; +inline constexpr bool has_iterator_v>> = true; template -constexpr bool has_const_iterator_v = false; +inline constexpr bool has_const_iterator_v = false; template -constexpr bool has_const_iterator_v>> = true; +inline constexpr bool has_const_iterator_v>> = true; template -constexpr bool can_set_value_at_iterator_v = false; +inline constexpr bool can_set_value_at_iterator_v = false; template -constexpr bool can_set_value_at_iterator_v())>> = true; +inline constexpr bool can_set_value_at_iterator_v())>> = true; template -constexpr bool can_set_mapped_at_iterator_v = false; +inline constexpr bool can_set_mapped_at_iterator_v = false; template -constexpr bool can_set_mapped_at_iterator_v())>> = true; +inline constexpr bool can_set_mapped_at_iterator_v())>> = true; template -constexpr bool can_insert_value_at_iterator_v = false; +inline constexpr bool can_insert_value_at_iterator_v = false; template -constexpr bool can_insert_value_at_iterator_v()))>> = true; +inline constexpr bool can_insert_value_at_iterator_v()))>> = true; template -constexpr bool can_erase_at_iterator_v = false; +inline constexpr bool can_erase_at_iterator_v = false; template -constexpr bool can_erase_at_iterator_v> = true; +inline constexpr bool can_erase_at_iterator_v> = true; template -constexpr bool can_erase_range_at_iterator_v = false; +inline constexpr bool can_erase_range_at_iterator_v = false; template -constexpr bool can_erase_range_at_iterator_v> = true; +inline constexpr bool can_erase_range_at_iterator_v> = true; template -constexpr bool can_get_at_key_v = false; +inline constexpr bool can_get_at_key_v = false; template -constexpr bool can_get_at_key_v(decltype(C()[key_type()]))>> = true; +inline constexpr bool can_get_at_key_v(decltype(C()[key_type()]))>> = true; template -constexpr bool can_set_at_key_v = false; +inline constexpr bool can_set_at_key_v = false; template -constexpr bool can_set_at_key_v()] = mapped_type())>> = true; +inline constexpr bool can_set_at_key_v()] = mapped_type())>> = true; template -constexpr bool can_erase_at_key_v = false; +inline constexpr bool can_erase_at_key_v = false; template -constexpr bool can_erase_at_key_v()))>> = true; +inline constexpr bool can_erase_at_key_v()))>> = true; template -constexpr bool can_remove_at_key_v = false; +inline constexpr bool can_remove_at_key_v = false; template -constexpr bool can_remove_at_key_v()))>> = true; +inline constexpr bool can_remove_at_key_v()))>> = true; template -constexpr bool can_insert_key_v = false; +inline constexpr bool can_insert_key_v = false; template -constexpr bool can_insert_key_v()))>> = true; +inline constexpr bool can_insert_key_v()))>> = true; template -constexpr bool can_insert_pair_v = false; +inline constexpr bool can_insert_pair_v = false; template -constexpr bool can_insert_pair_v(), mapped_type()}))>> = true; +inline constexpr bool can_insert_pair_v(), mapped_type()}))>> = true; template -constexpr bool can_insert_key_mapped_v = false; +inline constexpr bool can_insert_key_mapped_v = false; template -constexpr bool can_insert_key_mapped_v(), mapped_type()))>> = true; +inline constexpr bool can_insert_key_mapped_v(), mapped_type()))>> = true; template -constexpr bool has_contains_v = false; +inline constexpr bool has_contains_v = false; template -constexpr bool has_contains_v())))>> = true; +inline constexpr bool has_contains_v())))>> = true; template -constexpr bool has_find_v = false; +inline constexpr bool has_find_v = false; template -constexpr bool has_find_v()))>> = true; +inline constexpr bool has_find_v()))>> = true; template -constexpr bool iterator_dereferences_to_value_v = false; +inline constexpr bool iterator_dereferences_to_value_v = false; template -constexpr bool iterator_dereferences_to_value_v(*C().begin()))>> = true; +inline constexpr bool iterator_dereferences_to_value_v(*C().begin()))>> = true; template -constexpr bool iterator_has_key_v = false; +inline constexpr bool iterator_has_key_v = false; template -constexpr bool iterator_has_key_v(C().begin().key()))>> = true; +inline constexpr bool iterator_has_key_v(C().begin().key()))>> = true; template -constexpr bool value_type_has_first_v = false; +inline constexpr bool value_type_has_first_v = false; template -constexpr bool value_type_has_first_v(value_type().first))>> = true; +inline constexpr bool value_type_has_first_v(value_type().first))>> = true; template -constexpr bool iterator_dereferences_to_key_v = false; +inline constexpr bool iterator_dereferences_to_key_v = false; template -constexpr bool iterator_dereferences_to_key_v(*C().begin()))>> = true; +inline constexpr bool iterator_dereferences_to_key_v(*C().begin()))>> = true; template -constexpr bool iterator_has_value_v = false; +inline constexpr bool iterator_has_value_v = false; template -constexpr bool iterator_has_value_v(C().begin().value()))>> = true; +inline constexpr bool iterator_has_value_v(C().begin().value()))>> = true; template -constexpr bool value_type_has_second_v = false; +inline constexpr bool value_type_has_second_v = false; template -constexpr bool value_type_has_second_v(value_type().second))>> = true; +inline constexpr bool value_type_has_second_v(value_type().second))>> = true; template -constexpr bool iterator_dereferences_to_mapped_v = false; +inline constexpr bool iterator_dereferences_to_mapped_v = false; template -constexpr bool iterator_dereferences_to_mapped_v(*C().begin()))>> = true; +inline constexpr bool iterator_dereferences_to_mapped_v(*C().begin()))>> = true; QT_WARNING_POP -- cgit v1.2.3