We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
make_static_vector
1 parent 3791af2 commit 71acd46Copy full SHA for 71acd46
source/containers/static_vector.cpp
@@ -157,6 +157,11 @@ constexpr auto make_static_vector(Source && source) {
157
return static_vector<range_value_t<Source>, size>(OPERATORS_FORWARD(source));
158
}
159
160
+export template<typename T, std::size_t size>
161
+constexpr auto make_static_vector(c_array<T, size> && source) {
162
+ return static_vector<T, bounded::constant<size>>(std::move(source));
163
+}
164
+
165
} // namespace containers
166
167
template<typename T, containers::array_size_type<T> capacity>
0 commit comments