mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 11:17:35 +02:00
Remove redundant get_container
This commit is contained in:
@ -516,18 +516,6 @@ FMT_INLINE void assume(bool condition) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extracts a reference to the container from back_insert_iterator.
|
|
||||||
template <typename Container>
|
|
||||||
inline auto get_container(std::back_insert_iterator<Container> it)
|
|
||||||
-> Container& {
|
|
||||||
using base = std::back_insert_iterator<Container>;
|
|
||||||
struct accessor : base {
|
|
||||||
accessor(base b) : base(b) {}
|
|
||||||
using base::container;
|
|
||||||
};
|
|
||||||
return *accessor(it).container;
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename Char, typename InputIt, typename OutputIt>
|
template <typename Char, typename InputIt, typename OutputIt>
|
||||||
FMT_CONSTEXPR auto copy_str(InputIt begin, InputIt end, OutputIt out)
|
FMT_CONSTEXPR auto copy_str(InputIt begin, InputIt end, OutputIt out)
|
||||||
-> OutputIt {
|
-> OutputIt {
|
||||||
|
Reference in New Issue
Block a user