ptrexceptions.h
来自「遗传算法的一个库」· C头文件 代码 · 共 37 行
H
37 行
#ifndef __GradSoft_ptrExceptions_h#define __GradSoft_ptrExceptions_h/* * ptrExceptions.h -- exceptions * (C) Grad-Soft Ltd, <http://www.gradsoft.com.ua>, 2002 * $Id: ptrExceptions.h,v 1.3 2002/03/27 20:02:34 rssh Exp $ */#ifndef __STDEXCEPT_#include <stdexcept>#endif/** * **/namespace GradSoft{/** * those exception is thrown, when we try acess to null pointer * throught safe pointer wrapper class. **/struct NullPointerException: public std::runtime_error { NullPointerException() :std::runtime_error(std::string("Null pointer access")) {}};}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?