-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfvector.cpp
More file actions
37 lines (34 loc) · 920 Bytes
/
Copy pathfvector.cpp
File metadata and controls
37 lines (34 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2024- David Lucius Severus
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include "snowball/snowball.hpp"
#include "../src/io/console.hpp"
#include "../src/std.hpp"
#include "../src/vector/fvector.hpp"
int
main()
{
sb::verify_debug();
enable_scope()
{
sb::test_case("mc::fvector(), testing insertions and erasures");
mc::fvector<int> vec;
for ( int i = 0; i < 10; i++ ) vec.push_back(i);
vec.erase(vec.begin());
vec.erase(vec.begin() + 3);
vec.erase(vec.begin() + 7);
vec.erase(vec.begin() + 9);
mc::console(vec);
};
enable_scope()
{
sb::test_case("mc::fvector(), testing move const");
mc::fvector<int> vec(10, 5);
mc::console(vec);
mc::fvector<int> vec_2(mc::move(vec));
mc::console(vec);
mc::console(vec_2);
};
}