Reduce namespace length further

This commit is contained in:
Deukhoofd 2020-05-26 17:36:39 +02:00
parent 3dc96de34b
commit c8ca951dd8
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
6 changed files with 5 additions and 6 deletions

View File

@ -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;

View File

@ -5,7 +5,7 @@
#include <stdexcept>
#include <vector>
namespace ArbUt::Collections {
namespace ArbUt {
template <class ValueT> class List {
private:
std::vector<ValueT> _vector;

View File

@ -1 +0,0 @@
#include "borrowed_ptr.hpp"

View File

@ -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.

View File

@ -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);

View File

@ -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>();