ICode9

精准搜索请尝试: 精确搜索
  • 为类定义后构造函数的最小示例,使用 boost::signals2::deconstruct 作为它的工厂函数2021-06-29 17:08:09

      为类定义后构造函数的最小示例,使用 boost::signals2::deconstruct 作为它的工厂函数 实现功能 C++实现代码   实现功能 为类定义后构造函数的最小示例,使用 boost::signals2::deconstruct 作为它的工厂函数 C++实现代码 #include <boost/shared_ptr.hpp> #include <boost/s

  • Boost.Signals 的文档/查看示例2021-06-29 17:07:39

      Boost.Signals 的文档/查看示例 实现功能 C++实现代码   实现功能 Boost.Signals 的文档/查看示例 C++实现代码 #include <iostream> #include <string> #include <boost/signals2/signal.hpp> #include <boost/bind/bind.hpp> class Document  

  • boost::serialization模块实现快速二进制归档的测试程序2021-06-29 17:07:09

      boost::serialization模块实现快速二进制归档的测试程序 实现功能 C++实现代码   实现功能 boost::serialization模块实现快速二进制归档的测试程序 C++实现代码 #include <sstream> #include <boost/static_assert.hpp> #include <boost/type_traits/is_array.hpp> #define

  • boost::units模块实现测试数量的隐式转换的测试程序2021-06-29 16:58:07

      boost::units模块实现测试数量的隐式转换的测试程序 实现功能 C++实现代码   实现功能 boost::units模块实现测试数量的隐式转换的测试程序 C++实现代码 #include <boost/test/minimal.hpp> #include <boost/units/static_constant.hpp> #include <boost/units/quantity.hpp

  • boost::units模块单位/数量操作和转换的测试程序2021-06-29 16:55:56

      boost::units模块单位/数量操作和转换的测试程序 实现功能 C++实现代码   实现功能 boost::units模块单位/数量操作和转换的测试程序 C++实现代码 #include <boost/core/ignore_unused.hpp> #include <boost/units/systems/si/base.hpp> #include <boost/units/quantity.hpp

  • boost::units模块实现确保最小的 + - * / 单元类功能齐全的测试程序2021-06-29 16:55:26

      boost::units模块实现确保最小的 + - * / 单元类功能齐全的测试程序 实现功能 C++实现代码   实现功能 boost::units模块实现确保最小的 + - * / 单元类功能齐全的测试程序 C++实现代码 #include <boost/units/quantity.hpp> #include <boost/test/minimal.hpp> namespace b

  • boost::units模块实现用常量测试所有运算符的组合的测试程序2021-06-29 16:54:43

      boost::units模块实现用常量测试所有运算符的组合的测试程序 实现功能 C++实现代码   实现功能 boost::units模块实现用常量测试所有运算符的组合的测试程序 C++实现代码 #include <boost/units/systems/detail/constants.hpp> #include <boost/units/quantity.hpp> #includ

  • boost::units::absolute相关的测试程序2021-06-29 16:53:54

      boost::units::absolute相关的测试程序 实现功能 C++实现代码   实现功能 boost::units::absolute相关的测试程序 C++实现代码 #include <boost/units/quantity.hpp> #include <boost/units/absolute.hpp> #include <boost/units/unit.hpp> #include <boost/units/make_syst

  • boost::units模块实现带有转换的用户定义单位的测试程序2021-06-29 16:53:20

      boost::units模块实现带有转换的用户定义单位的测试程序 实现功能 C++实现代码   实现功能 boost::units模块实现带有转换的用户定义单位的测试程序 C++实现代码 #include <iostream> #include <boost/units/io.hpp> #include <boost/units/conversion.hpp> #include <boost

  • 使用 Boost.Lambda 库创建并存储在 Boost.Function 对象中的函子中使用 Boost.Units 的数量、单位和绝对类型2021-06-29 16:53:10

      使用 Boost.Lambda 库创建并存储在 Boost.Function 对象中的函子中使用 Boost.Units 的数量、单位和绝对类型 实现功能 C++实现代码   实现功能 使用 Boost.Lambda 库创建并存储在 Boost.Function 对象中的函子中使用 Boost.Units 的数量、单位和绝对类型 C++实现代码 #incl

  • boost::units模块实现展示信息单元系统2021-06-29 16:52:52

      boost::units模块实现展示信息单元系统 实现功能 C++实现代码   实现功能 boost::units模块实现展示信息单元系统 C++实现代码 #include <cmath> #include <iostream> using std::cout; using std::endl; using std::log;  

  • boost::units模块实现异构单元片段2021-06-29 16:52:31

      boost::units模块实现异构单元片段 实现功能 C++实现代码   实现功能 boost::units模块实现异构单元片段 C++实现代码 #define MCS_USE_DEMANGLING #include <iostream> #include <boost/units/io.hpp> #include <boost/units/pow.hpp> #include <boo  

  • boost::units模块实现测试显式和隐式单位转换2021-06-29 16:52:10

      boost::units模块实现测试显式和隐式单位转换 实现功能 C++实现代码   实现功能 boost::units模块实现测试显式和隐式单位转换 C++实现代码 #include <iostream> #include <boost/units/io.hpp> #include <boost/units/pow.hpp> #include <boost/units/systems/cgs.hpp> #

  • boost::units::conversion_factor相关的测试程序2021-06-29 16:51:54

      boost::units::conversion_factor相关的测试程序 实现功能 C++实现代码   实现功能 boost::units::conversion_factor相关的测试程序 C++实现代码 #include <iostream> #include <boost/units/cmath.hpp> #include <boost/units/io.hpp> #include <boost/units/quantity.hpp

  • BOOST_VMD_ASSERT_IS_ARRAY宏相关的测试程序2021-06-28 14:57:58

      BOOST_VMD_ASSERT_IS_ARRAY宏相关的测试程序     实现功能 BOOST_VMD_ASSERT_IS_ARRAY宏相关的测试程序 C++实现代码 #include <boost/vmd/assert_is_array.hpp> #include <boost/detail/lightweight_test.hpp> int main() { #if BOOST_PP_VARIADICS  

  • boost::variant2模块实现默认构造相关的测试程序2021-06-28 14:57:46

      boost::variant2模块实现默认构造相关的测试程序     实现功能 boost::variant2模块实现默认构造相关的测试程序 C++实现代码 #include <boost/variant2/variant.hpp> using namespace boost::variant2; #define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS

  • boost::variant2模块转换构造抛出相关的测试程序2021-06-28 14:57:14

      boost::variant2模块转换构造抛出相关的测试程序     实现功能 boost::variant2模块转换构造抛出相关的测试程序 C++实现代码 #if defined(_MSC_VER) # pragma warning( disable: 4702 ) // unreachable code #endif #include <boost/variant2/variant.hpp> #include <boos

  • boost::variant2模块实现抛出异常的测试程序2021-06-28 14:57:00

      boost::variant2模块实现抛出异常的测试程序       实现功能 boost::variant2模块实现抛出异常的测试程序 C++实现代码 #include <boost/config.hpp> #include <exception> #include <cstdio> namespace boost { void throw_exception( std  

  • boost::variant2::variant_alternative相关的测试程序2021-06-28 14:56:48

      boost::variant2::variant_alternative相关的测试程序       实现功能 boost::variant2::variant_alternative相关的测试程序 C++实现代码 #include <boost/variant2/variant.hpp> #include <boost/mp11.hpp> #include <boost/core/lightweight_test.hpp> #include <boost

  • boost::polymorphic_get相关的测试程序2021-06-28 14:56:28

      boost::polymorphic_get相关的测试程序     实现功能 boost::polymorphic_get相关的测试程序 C++实现代码 #include "boost/variant/variant.hpp" #include "boost/variant/apply_visitor.hpp" #include "boost/variant/static_visitor.hpp" #include "boost

  • boost::make_recursive_variant相关的测试程序2021-06-28 14:56:18

      boost::make_recursive_variant相关的测试程序     实现功能 boost::make_recursive_variant相关的测试程序 C++实现代码 #include <boost/variant.hpp> #include <map> #include <memory> #include <vector> #ifdef  

  • 比特币源码分析--C++11和boost库的应用2021-06-27 13:03:26

    比特币源码分析--C++11和boost库的应用     我们先停下探索比特币源码的步伐,来分析一下C++11和boost库在比特币源码中的应用。比特币是一个纯C++编写的项目,用到了C++11和boost的许多特性,本文来总结一下相关特性的用法,或许将来的项目中可以使用到。 1 boost相关 1.1 boost::

  • c++之判断文件和路径是否存在2021-06-26 11:04:39

    目录简介代码笔记参考 简介 判断文件/路径是否存在 新建文件/路径 代码 #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> bool isDirExist(const std::string& path_name) { if (boost::filesystem::exists(path_name) && boost::filesystem::is_d

  • boost::enable_shared_from_this相关的测试程序2021-06-22 15:02:41

    boost::enable_shared_from_this相关的测试程序 实现功能 C++实现代码 实现功能 boost::enable_shared_from_this相关的测试程序 C++实现代码 #include <boost/core/lightweight_test.hpp> #include <boost/make_shared.hpp> #include <boost/shared_ptr.hpp> #include

  • boost::safe_numerics模块测试 constexpr 转换2021-06-22 13:29:27

    boost::safe_numerics模块测试 constexpr 转换 实现功能 C++实现代码 实现功能 boost::safe_numerics模块测试 constexpr 转换 C++实现代码 #include <boost/safe_numerics/safe_integer.hpp> #include <boost/safe_numerics/native.hpp> #include <boost/safe_numeric

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有