mstl_define.hpp
来自「一个类STL的多平台可移植的算法容器库,主要用于嵌入式系统编程时的内存管理等方面」· HPP 代码 · 共 45 行
HPP
45 行
/*
The young Library
Copyright (c) 2005 by 杨桓
Permission to use, copy, modify, distribute and sell this software for any
purpose is hereby granted without fee, provided that the above copyright
notice appear in all copies and that both that copyright notice and this
permission notice appear in supporting documentation.
The author make no representations about the suitability of this software
for any purpose. It is provided "as is" without express or implied warranty.
*/
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
#ifndef __MACRO_CPLUSPLUS_MINI_STL_DEFINE_HEADER_FILE__
#define __MACRO_CPLUSPLUS_MINI_STL_DEFINE_HEADER_FILE__
//-----------------------------------------------------------------------------
#include <cstddef>
//-----------------------------------------------------------------------------
#define __MACRO_CPLUSPLUS_MINI_STL_BEGIN_NAMESPACE__ namespace ministl {
#define __MACRO_CPLUSPLUS_MINI_STL_END_NAMESPACE__ }
//-----------------------------------------------------------------------------
__MACRO_CPLUSPLUS_MINI_STL_BEGIN_NAMESPACE__
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
#define NULL_POINTER 0
typedef int def_nullptr_t;
typedef std::size_t def_size_t;
typedef std::ptrdiff_t def_ptrdiff_t;
static const def_size_t size_t_max = static_cast<def_size_t>( -1 );
static const unsigned int alignment_bytes = 24;
static const unsigned int string_alignment_bytes = 64;
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
__MACRO_CPLUSPLUS_MINI_STL_END_NAMESPACE__
#endif
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?