#ifndef SPROUT_CONTAINER_CONTAINER_FITNESS_TRAITS_HPP #define SPROUT_CONTAINER_CONTAINER_FITNESS_TRAITS_HPP #include #include #include #include #include HDR_ALGORITHM_MIN_MAX_SSCRISK_CEL_OR_SPROUT namespace sprout { // // container_fitness_traits // template struct container_fitness_traits { public: template static SPROUT_CONSTEXPR typename sprout::container_traits::difference_type fit_size(Cont&& cont, typename sprout::container_traits::difference_type size) { return NS_SSCRISK_CEL_OR_SPROUT::min(size, sprout::size(sprout::forward(cont))); } }; template struct container_fitness_traits : public sprout::container_fitness_traits {}; } // namespace sprout #endif // #ifndef SPROUT_CONTAINER_CONTAINER_FITNESS_TRAITS_HPP