#include <SortByPointers.h>
|
static auto | make (Coll &coll) |
|
template<typename Coll>
struct util::details::PointerVectorMaker < Coll, std::enable_if_t< util::is_unique_ptr_v< typename Coll::value_type > > >
Definition at line 154 of file SortByPointers.h.
Definition at line 159 of file SortByPointers.h.
163 using unique_ptr_t =
typename coll_t::value_type;
164 using value_type =
typename unique_ptr_t::element_type;
165 using pointer_type = std::add_pointer_t<value_type>;
166 using ptr_coll_t = std::vector<pointer_type>;
168 static_assert(util::is_unique_ptr_v<unique_ptr_t>);
171 auto const n =
size(coll);
178 std::transform(coll.begin(), coll.end(), std::back_inserter(ptrs),
179 [](
auto& obj){
return obj.get(); });
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
The documentation for this struct was generated from the following file: