📄 mstl_define.hpp
字号:
/*
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -