Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
不明确的元函数或未定义的类型
我是元功能的新手 我想编写一个函数 将复合类型中某种类型的所有匹配项替换为其他类型 在示例中 replace
c
boost
metaprogramming
templatemetaprogramming
boostmpl
Boost.MPL 和类型列表生成
背景 这是用于游戏引擎中的内存管理器 我有一个freelist已实现 并且希望有一个编译时列表 如果有 例如 MPL 或 Fusion 向量 这freelist对应于分配大小 当分配 释放大小小于常量的对象时 它们将转到相应的freelis
c
boost
metaprogramming
boostmpl
boostfusion
boost::mpl::fold 用于双参数抽象
我有一个名为 caRender 的类 它为 clientObjectTypes 中的每个给定对象类型提供一个 caRender renderClientObject 方法 所以下面的代码片段显示了这个运行情况 define UNUSED x
c
boost
metaprogramming
boostmpl
MPL pos 是一个未记录的元函数吗?
里面有下面的示例代码BOOST MPL 文档find算法 http www boost org doc libs 1 46 1 libs mpl doc refmanual find html typedef vector
c
boost
find
position
boostmpl
Boost::MPL Vector 和 For_Each:如何将 avector 打印为元组?
想象一下 我们有一个 mpl vector 我们想将其打印 例如 cout 为这样的字符串 int string char 如何使用 boost mpl 来做这样的事情 创建一个函子并调用 boost for each struct pri
c
boost
boostmpl
元编程:从 boost mpl::vector 中的每个类继承
我希望继承包含在 boost mpl vector 中的一组类 这可能吗 具体来说 我想延长test对于任意多个模板参数 作为 mpl vector 传递 template
c
metaprogramming
boostmpl
C++11 如何代理只有名称和父类的类函数?
我想知道是否可以使用 boost mpl preprocessor 或一些 noce C 11 功能从类类型和函数名称创建函数代理 假设我们有 inline void set email const std string value inl
c
boost
C11
boostmpl
boostpreprocessor
Boost Fusion:在编译时验证调整后的结构成员排序
我在用着BOOST FUSION ADAPT STRUCT 我需要检查所有成员是否已声明且顺序正确 所以首先我这样做了 template
c
templatemetaprogramming
boostmpl
staticassert
boostfusion
std::integral_constant
的否定
抱歉问了这么简单的问题 但我无法轻松找到答案 谷歌没有说任何关于 C 否定积分常量 和类似查询的有趣内容 C 11 中是否有任何特征使得std true type from std false type反之亦然 换句话说 我想要一些更具可读
c
C11
templatemetaprogramming
typetraits
boostmpl
C++中接口的多重继承
我有一个对象接口和派生对象可能想要支持的开放式接口集合 An object class IObject getAttribute 0 A mutable object class IMutable setAttribute 0 A lock
c
inheritance
interface
multipleinheritance
boostmpl
Sun C++ 编译器和 Boost
我目前正在 OpenSolaris 2009 06 上进行开发 Boost MPL 文档似乎表明 sun 编译器是不支持 http www boost org doc libs 1 41 0 libs mpl doc tutorial po
c
boost
boostmpl
opensolaris
suncc
如何将 std::tuple 类型与 boost::mpl 算法一起使用?
The boost mpl算法似乎无法工作std tuple开箱即用的类型 例如 以下内容无法编译 boost 1 46 0 g snapshot 2011 02 19 include
c
C11
tuples
boostmpl
如何循环非默认构造类的 boost MPL 列表?
我有以下示例 include
c
boost
boostmpl
用自己的函数变换 mpl 向量
我想将每个元素相乘mpl vector by an int 首先 一个元函数来乘以int 与int template
c
metaprogramming
boostmpl
如何为类型列表中的每个继承类型调用非默认构造函数?
我使用 boost 类型列表按以下方式实现策略模式 using namespace boost mpl template
c
templates
boost
metaprogramming
boostmpl
boost::mpl::vector - 获取类型的基偏移量
是否有可能获得 a 的偏移量mpl vector执行完某个操作后mpl find
c
Algorithm
containers
boostmpl
templatemetaprogramming
如何“连接” boost::mpl::向量
我必须使用不同的向量 mpl vector
c
boost
boostmpl
有没有办法摆脱 boost::mpl for_each ?
确实很简单的问题 让我介绍一些背景 我有一个mpl vector类型 其中每种类型都有一个 id 在运行时我使用mpl for each迭代此向量并找到给定 id 的匹配类型 但一旦找到 继续循环就没有意义了 所以 问题是 有没有办法摆脱它
c
templates
boost
boostmpl
如何循环访问 boost::mpl::list?
据我所知 这是 include
c
templates
boost
metaprogramming
boostmpl