Reduce namespace length further
This commit is contained in:
parent
3dc96de34b
commit
c8ca951dd8
|
@ -4,7 +4,7 @@
|
|||
#include <unordered_map>
|
||||
#include "../Assert.hpp"
|
||||
|
||||
namespace ArbUt::Collections {
|
||||
namespace ArbUt {
|
||||
template <class KeyT, class ValueT> class Dictionary {
|
||||
private:
|
||||
std::unordered_map<KeyT, ValueT> _map;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <stdexcept>
|
||||
#include <vector>
|
||||
|
||||
namespace ArbUt::Collections {
|
||||
namespace ArbUt {
|
||||
template <class ValueT> class List {
|
||||
private:
|
||||
std::vector<ValueT> _vector;
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
#include "borrowed_ptr.hpp"
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
namespace ArbUt::Memory {
|
||||
namespace ArbUt {
|
||||
/// A borrowed pointer is used to indicate a pointer that is not owned by an object, but instead borrowed from
|
||||
/// another owning object that is assumed to always be kept alive during the entire lifetime of the borrowing
|
||||
/// object.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifdef TESTS_BUILD
|
||||
#include "../extern/catch.hpp"
|
||||
#include "../src/Collections/Dictionary.hpp"
|
||||
using namespace ArbUt::Collections;
|
||||
using namespace ArbUt;
|
||||
|
||||
TEST_CASE("Create Dictionary, insert values", "[Utilities]") {
|
||||
auto dic = Dictionary<int, int>(5);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifdef TESTS_BUILD
|
||||
#include "../extern/catch.hpp"
|
||||
#include "../src/Collections/List.hpp"
|
||||
using namespace ArbUt::Collections;
|
||||
using namespace ArbUt;
|
||||
|
||||
TEST_CASE("Create List, insert values", "[Utilities]") {
|
||||
auto ls = List<int>();
|
||||
|
|
Loading…
Reference in New Issue