Skip to content

Commit

Permalink
Add a simple CTAD guide to small_vector<>. (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhuggett authored Dec 12, 2023
1 parent 90ffee0 commit 323a4ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/peejay/small_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@ class small_vector {
large_type &to_large ();
};

template <typename ElementType>
small_vector (ElementType) -> small_vector<ElementType>;

// (ctor)
// ~~~~~~
template <typename ElementType, std::size_t BodyElements, typename Allocator>
Expand Down

0 comments on commit 323a4ac

Please sign in to comment.