container: c++: run linter

This commit is contained in:
2025-08-19 11:46:37 -07:00
parent cc7ecf27a6
commit abac2a37d6
5 changed files with 25 additions and 32 deletions

View File

@@ -288,16 +288,20 @@ class Random final
miles /= 24901; miles /= 24901;
// TODO(unassigned): would be nice to have some RNG-related info // TODO(unassigned): would be nice to have some RNG-related info
pt->AddText(std::string{"Fun facts"} pt->AddText(
.c_str()); // TODO(unassigned): make this small text std::string{"Fun facts"}
pt->AddText(std::string{ .c_str()); // TODO(unassigned): make this small text
"There are " + std::to_string(is_odd) + " odd numbers and " pt->AddText(
+ std::to_string(data.y.size() - is_odd) + " even numbers"} std::string{
.c_str()); "There are " + std::to_string(is_odd) + " odd numbers and "
pt->AddText(std::string{ + std::to_string(data.y.size() - is_odd) + " even numbers"}
"If the total values generated were miles, you could circle the earth " .c_str());
+ std::to_string(miles) + " times!"} pt->AddText(
.c_str()); std::string{
"If the total values generated were miles, you could circle the "
"earth "
+ std::to_string(miles) + " times!"}
.c_str());
pt->Draw(); pt->Draw();
} }

View File

@@ -106,8 +106,7 @@ class Hash final : public t_impl
//! \endcode //! \endcode
template < template <
typename t_hash, typename t_hash,
template <typename...> template <typename...> typename t_container,
typename t_container,
typename... t_args, typename... t_args,
std::enable_if_t< std::enable_if_t<
type::is_signature_with_string<t_container<t_args...>>, type::is_signature_with_string<t_container<t_args...>>,
@@ -132,8 +131,7 @@ class Hash final : public t_impl
//! \endcode //! \endcode
template < template <
typename t_hash, typename t_hash,
template <typename...> template <typename...> typename t_container,
typename t_container,
typename... t_args, typename... t_args,
std::enable_if_t< std::enable_if_t<
type::is_signature_with_value_type_allocator<t_container<t_args...>>, type::is_signature_with_value_type_allocator<t_container<t_args...>>,
@@ -158,8 +156,7 @@ class Hash final : public t_impl
//! \endcode //! \endcode
template < template <
typename t_hash, typename t_hash,
template <typename...> template <typename...> typename t_container,
typename t_container,
typename... t_args, typename... t_args,
std::enable_if_t< std::enable_if_t<
type::is_signature_with_mapped_type_allocator<t_container<t_args...>>, type::is_signature_with_mapped_type_allocator<t_container<t_args...>>,

View File

@@ -151,8 +151,7 @@ class Transform : private ImplBase<t_impl>
template < template <
typename t_tag, typename t_tag,
typename t_encoded, typename t_encoded,
template <typename...> template <typename...> typename t_container,
typename t_container,
typename... t_args, typename... t_args,
std::enable_if_t< std::enable_if_t<
type::is_signature_with_string<t_container<t_args...>>, type::is_signature_with_string<t_container<t_args...>>,
@@ -169,8 +168,7 @@ class Transform : private ImplBase<t_impl>
template < template <
typename t_tag, typename t_tag,
typename t_encoded, typename t_encoded,
template <typename...> template <typename...> typename t_container,
typename t_container,
typename... t_args, typename... t_args,
std::enable_if_t< std::enable_if_t<
type::is_signature_with_value_type_allocator<t_container<t_args...>>, type::is_signature_with_value_type_allocator<t_container<t_args...>>,
@@ -222,8 +220,7 @@ class Transform : private ImplBase<t_impl>
template < template <
typename t_tag, typename t_tag,
typename t_encoded, typename t_encoded,
template <typename...> template <typename...> typename t_container,
typename t_container,
typename... t_args, typename... t_args,
std::enable_if_t< std::enable_if_t<
type::is_signature_with_mapped_type_allocator<t_container<t_args...>>, type::is_signature_with_mapped_type_allocator<t_container<t_args...>>,

View File

@@ -112,8 +112,7 @@ namespace libsodium
//! \ingroup cpp_API //! \ingroup cpp_API
//! \note For public consumption //! \note For public consumption
//! \since docker-finance 1.0.0 //! \since docker-finance 1.0.0
using Random = using Random = ::dfi::crypto::common::Random<impl::libsodium::Random>;
::dfi::crypto::common::Random<impl::libsodium::Random>;
} // namespace libsodium } // namespace libsodium
} // namespace crypto } // namespace crypto

View File

@@ -141,8 +141,7 @@ class Byte final : public impl::Byte
} }
template < template <
template <typename...> template <typename...> typename t_container,
typename t_container,
typename... t_args, typename... t_args,
std::enable_if_t< std::enable_if_t<
type::is_signature_with_value_type_allocator<t_container<t_args...>>, type::is_signature_with_value_type_allocator<t_container<t_args...>>,
@@ -153,8 +152,7 @@ class Byte final : public impl::Byte
} }
template < template <
template <typename...> template <typename...> typename t_container,
typename t_container,
typename... t_args, typename... t_args,
std::enable_if_t< std::enable_if_t<
type::is_signature_with_mapped_type_allocator<t_container<t_args...>>, type::is_signature_with_mapped_type_allocator<t_container<t_args...>>,
@@ -172,8 +170,7 @@ class Byte final : public impl::Byte
} }
template < template <
template <typename...> template <typename...> typename t_container,
typename t_container,
typename... t_args, typename... t_args,
std::enable_if_t< std::enable_if_t<
type::is_signature_with_value_type_allocator<t_container<t_args...>>, type::is_signature_with_value_type_allocator<t_container<t_args...>>,
@@ -184,8 +181,7 @@ class Byte final : public impl::Byte
} }
template < template <
template <typename...> template <typename...> typename t_container,
typename t_container,
typename... t_args, typename... t_args,
std::enable_if_t< std::enable_if_t<
type::is_signature_with_mapped_type_allocator<t_container<t_args...>>, type::is_signature_with_mapped_type_allocator<t_container<t_args...>>,