[ox/std] Add ox::ignore

This commit is contained in:
Gary Talent 2024-04-09 22:40:20 -05:00
parent 6a52319156
commit af7c89564c
3 changed files with 15 additions and 0 deletions

View File

@ -103,6 +103,7 @@ install(
hardware.hpp
hashmap.hpp
heapmgr.hpp
ignore.hpp
iterator.hpp
math.hpp
memops.hpp

13
deps/ox/src/ox/std/ignore.hpp vendored Normal file
View File

@ -0,0 +1,13 @@
/*
* Copyright 2016 - 2024 Gary Talent (gary@drinkingtea.net). All rights reserved.
*/
#pragma once
namespace ox {
inline constexpr struct {
constexpr void operator=(auto&&) const noexcept {}
} ignore;
}

View File

@ -25,6 +25,7 @@
#include "hardware.hpp"
#include "hashmap.hpp"
#include "heapmgr.hpp"
#include "ignore.hpp"
#include "iterator.hpp"
#include "math.hpp"
#include "memops.hpp"