#include <vector>
#include "container.h"
#include "test_iterators.h"
+#include "test_macros.h"
#include "test_range.h"
template <class Container, class Range, class... Args>
constexpr void push_back(value_type) {}
constexpr value_type* begin() { return &x; }
constexpr value_type* end() { return &x; }
+ std::size_t size() const { return 0; }
};
struct CtrDirectOrFallback : Fallback {
reserve_called = true;
}
};
-static_assert(std::ranges::__reservable_container<Reservable<>>);
+LIBCPP_STATIC_ASSERT(std::ranges::__reservable_container<Reservable<>>);
constexpr void test_constraints() {
{ // Case 1 -- construct directly from the range.