Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
box.h File Reference

提供可存储任意类型的异构容器(Box)和类型擦除包装器(Item)。 More...

#include <cstdlib>
#include <memory>
#include <ostream>
#include <type_traits>
#include <typeinfo>
#include <utility>
#include <vector>
#include "../core/csexc.h"
#include "../text/repr.h"
#include "../text/strpp.h"

Go to the source code of this file.

Classes

class  console::Item
 可存储任意类型单个对象的类型擦除包装器。 More...
struct  console::Item::Base
 虚基类,定义了所有派生类必须实现的接口。 More...
struct  console::Item::Derived< T >
 模板派生类,具体存储类型 T 的值。 More...
class  console::Box
 存储多个 Item 的异构容器。 More...

Namespaces

namespace  console
 本库所有组件所在的顶层命名空间。

Detailed Description

提供可存储任意类型的异构容器(Box)和类型擦除包装器(Item)。

Author
MrXie1109
Date
2026