码迷,mamicode.com
首页 >  
搜索关键字:operator-    ( 3564个结果)
SQL Lazy Spool Eager Spool
https://www.simple-talk.com/sql/learn-sql-server/showplan-operator-of-the-week-lazy-spool/ ...
分类:数据库   时间:2016-11-01 18:41:58    阅读次数:160
Sum of Two Integers
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. ...
分类:其他好文   时间:2016-11-01 07:39:33    阅读次数:146
GeekBand第二三周学习笔记
conversion function(转换函数) operator type()转换函数不需要声明返回类型,返回值类型为type,一个类的转换函数可以有任意多个,转换函数会被编译器作为进行默认类型转换的调用对象,还有转换函数最好加上const,否则const修饰的类型则无法使用此转换函数. ...
分类:其他好文   时间:2016-11-01 00:50:31    阅读次数:145
如何对比迁移前后的Oracle数据库性能
有越来越多的数据库都需要要迁移。如何衡量前后的数据库性能成了一个难点。本文使用AWR Compare Report来解决这个问题。以下皆为测试库内容
分类:数据库   时间:2016-10-31 16:42:02    阅读次数:346
STL源码剖析(仿函数/bind2nd)
仿函数(functors)其实就是重载了operator()的对象。 下面简单先看看它的一个例子: 1 #include <iostream> 2 using namespace std; 3 4 template<typename T> 5 struct m_plus 6 { 7 T operat ...
分类:其他好文   时间:2016-10-31 13:28:28    阅读次数:263
C++ STL中允许重复key的multimap
在实际的项目中可能会碰到key重复的情况,正常的MAP类型是不允许重复的key,所以就要使用multimap了,multimap的使用和map基本类似,可以无缝对接 #include <map> typedef pair<string, int> PAIR; ostream& operator<<( ...
分类:编程语言   时间:2016-10-30 23:53:38    阅读次数:325
STL源码剖析(算法)
STL中算法是基于迭代器来实现的。 有了容器中迭代器的实现(对operator*、operator++等的重载),STL中大部分算法实现就显得很简单了。 先看一例关于find算法的实现: 1 template <class InputIterator, class T> 2 InputIterato ...
分类:编程语言   时间:2016-10-30 11:17:02    阅读次数:347
371. Sum of Two Integers
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. java: ...
分类:其他好文   时间:2016-10-30 00:22:43    阅读次数:150
operator++()和operator++(int)的区别
// 前缀形式:增加然后取回值UPInt& UPInt::operator++(){ *this += 1; // 增加 return *this; // 取回值}// postfix form: fetch and incrementconst UPInt UPInt::operator++(in ...
分类:其他好文   时间:2016-10-29 19:40:21    阅读次数:221
c++ primer 5th 笔记:第六章
第六章 笔记 1. 通过调用运算符(call operator)来执行函数。调用运算符的形式是一对圆括号,它作用于一个表达式,该表达式是一个函数或指向函数的指针。 2. 在c++语言中,名字有作用域,对象有生命周期。 a. 名字的作用域是程序文本的一部分,名字在其中可见。 b. 对象的生命周期是程序 ...
分类:编程语言   时间:2016-10-29 12:12:46    阅读次数:344
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!