1、bind的工作原理 bind 并不是一个单独的类或函数,而是非常庞大的家族,依据绑定的参数的个数和要绑定的调用对象的类型,总共有数十种不同的形式,编译器会根据具体的绑定代码制动确定要使用的正确的形式,bind的基本形式如下:template bind(F f);template bind(F f...
分类:
其他好文 时间:
2014-09-18 14:44:34
阅读次数:
179
1.创建word模版,使用MergeFeild绑定数据 新建一个Word文档,命名为Template.doc 注意:这里并不是输入"《”和“》”就可以了,而是必须在菜单的"插入→文档部件→域”找到MergeField并输入相应的域名2.使用数组提供数据源string tempPath = Ser.....
分类:
Web程序 时间:
2014-09-18 12:55:23
阅读次数:
197
minmax原型:
std::minmax
C++11
C++14
default (1)
template
pair minmax (const T& a, const T& b);
custom (2)
template
pair minmax (const T& a, const T& b...
分类:
其他好文 时间:
2014-09-18 02:02:13
阅读次数:
242
make_heap原型:
std::make_heap
default (1)
template
void make_heap (RandomAccessIterator first, RandomAccessIterator last);
custom (2)
template
void make_heap (Rando...
分类:
其他好文 时间:
2014-09-17 18:43:42
阅读次数:
241
#include
template
class Splay_Tree
{
public:
Splay_Tree();
bool find(const T& val);
void insert(const T& val);
void del(const T& val);
private:
typedef struct tagNODE
{
T data;
struct tag...
分类:
其他好文 时间:
2014-09-17 13:40:32
阅读次数:
219
lexicographical_compare原型:
std::lexicographical_compare
default (1)
template
bool lexicographical_compare (InputIterator1 first1, InputIterator1 last1,
...
分类:
其他好文 时间:
2014-09-17 12:13:52
阅读次数:
226
lower_bound原型:
function template
std::lower_bound
default (1)
template
ForwardIterator lower_bound (ForwardIterator first, ForwardIterator last,
...
分类:
其他好文 时间:
2014-09-17 12:09:32
阅读次数:
235
is_permutation原型:
std::is_permutation
equality (1)
template
bool is_permutation (ForwardIterator1 first1, ForwardIterator1 last1,
ForwardIterator2 first2...
分类:
其他好文 时间:
2014-09-17 10:19:02
阅读次数:
433
is_sort的原型:
::is_sorted
default (1)
template
bool is_sorted (ForwardIterator first, ForwardIterator last);
custom (2)
template
bool is_sorted (ForwardIterator fir...
分类:
其他好文 时间:
2014-09-17 10:17:32
阅读次数:
220
1 函数模板
template
T compare(const T & v1,const T &v2)
{
return ..
}
编译器承担了为每种类型编写函数的单调工作.
inline
template inline T min(const T&,const T&)
2 类模板
template
class Q{
T fun();
}...
分类:
编程语言 时间:
2014-09-16 23:46:41
阅读次数:
281