⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mstl_exception.hpp

📁 一个类STL的多平台可移植的算法容器库,主要用于嵌入式系统编程时的内存管理等方面
💻 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_EXCEPTION_HEADER_FILE__
#define __MACRO_CPLUSPLUS_MINI_STL_EXCEPTION_HEADER_FILE__
//-----------------------------------------------------------------------------
#include <stdexcept>
#include "mstl_define.hpp"
//-----------------------------------------------------------------------------
__MACRO_CPLUSPLUS_MINI_STL_BEGIN_NAMESPACE__
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------

inline void throw_logic_error( const char* error_info )
{
    throw std::logic_error( error_info );
}


inline void throw_domain_error( const char* error_info )
{
    throw std::domain_error( error_info );
}


inline void throw_invalid_argument( const char* error_info )
{
    throw std::invalid_argument( error_info );
}


inline void throw_length_error( const char* error_info )
{
    throw std::length_error( error_info );
}


inline void throw_out_of_range( const char* error_info )
{
    throw std::out_of_range( error_info );
}


inline void throw_runtime_error( const char* error_info )
{
    throw std::runtime_error( error_info );
}


inline void throw_overflow_error( const char* error_info )
{
    throw std::overflow_error( error_info );
}


inline void throw_range_error( const char* error_info )
{
    throw std::range_error( error_info );
}


inline void throw_underflow_error( const char* error_info )
{
    throw std::underflow_error( error_info );
}

//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
__MACRO_CPLUSPLUS_MINI_STL_END_NAMESPACE__
#endif
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -