C++ Rule Of Three和Copy-And-Swap Idiom介绍(1)

[TOC]

术语介绍

Rule Of Three

引自WikiPedia, Rule of three)

> The rule of three(also known as the Law of The Big Three or The Big Three) is a rule of thumb in C++ that claims that if a class defines......

C++关于模板基类参数的一个问题

[TOC]

问题的描述

今天尝试着用C++实现一个简单的doubly linked list的时候碰到一个问题, 先看下面的代码.

template <typename Object>

class DoublyLinkedList {

// codes omitted

public:

class const_iterator {

protec......