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

View File

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

View File

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

View File

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

View File

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