Skip to content

Commit ced341e

Browse files
committed
minor format + documentation improv
1 parent 533b029 commit ced341e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/beman/inplace_vector/inplace_vector.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ template <typename T, std::size_t Capacity>
7373
struct inplace_vector_destruct_base {
7474
using size_type = std::size_t;
7575
using internal_size_type = inplace_vector_internal_size_type<Capacity>;
76-
7776
using internal_storage_type =
7877
std::conditional_t<std::is_trivial_v<T>,
7978
inplace_vector_array_based_storage<T, Capacity>,

src/beman/inplace_vector/tests/constexpr.test.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static_assert(std::invoke([]() {
3737

3838
return true;
3939
}),
40-
"Should be constexpr for all 0 capacity for trivial type");
40+
"0 capacity Trivial type");
4141

4242
static_assert(std::invoke([]() {
4343
inplace_vector<NonTrivial, 0> vec;
@@ -54,11 +54,12 @@ static_assert(std::invoke([]() {
5454
S_ASSERT(vec.rbegin() == vec.rend());
5555
S_ASSERT(vec.crbegin() == vec.crend());
5656

57+
// push_back
5758
S_ASSERT(vec.try_push_back({}) == nullptr);
5859

5960
return true;
6061
}),
61-
"Should be constexpr for all 0 capacity for non-trivial type");
62+
"0 capacity Non-trivial type");
6263

6364
static_assert(std::invoke([]() {
6465
// sizes
@@ -141,7 +142,7 @@ static_assert(std::invoke([]() {
141142

142143
return true;
143144
}),
144-
"Single push_back");
145+
"Basic mutation");
145146

146147
int main() {
147148
// compile means pass

0 commit comments

Comments
 (0)