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

📄 cxx.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: cxx.so,v 1.3 2002/08/27 02:28:31 bostic Exp $])m4_ref_title(Upgrading m4_db Applications,    Release 4.1: C++ exceptions,,    upgrade.4.1/java, upgrade.4.1/app_dispatch)m4_p([dnlWith default flags, the C++ m4_refcxx(DbEnv) and m4_refcxx(Db) classescan throw exceptions from their constructors.  For example, this canhappen if invalid parameters are passed in or the underlying Cstructures could not be created.  If the objects are created in anenvironment that is not configured for exceptions (that is, them4_ref(DB_CXX_NO_EXCEPTIONS) flag is specified), errors from theconstructor will be returned when the handle's open method is called.])m4_p([dnlIn addition, the behavior of the m4_refcxx(DbEnv) and m4_refcxx(Db)destructors has changed to simplify exception handling in applications.The destructors will now close the handle if the handle's close methodwas not called prior to the object being destroyed.  The return valueof the call is discarded, and no exceptions will be thrown.Applications should call the close method in normal situations so anyerrors while closing can be handled by the application.])m4_p([dnlThis change allows applications to be structured as follows:])m4_indent([dnltry {	DbEnv env(0);	env.open(/* ... */);	Db db(&env, 0);	db.open(/* ... */);	/* ... */	db.close(0);	env.close(0);} catch (DbException &dbe) {	// Handle the exception, the handles have already been closed.}])m4_page_footer

⌨️ 快捷键说明

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