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