skip to main
|
skip to sidebar
狭路相逢勇者胜
Friday, June 8, 2007
编译器如何区分含有const关键字的重载?
template < typename T, int n >
class Array
{
public:
T & operator [] (int i) { return a_[i];}
const T & operator [] (int i) const { return a_[i];}
private:
T a_[n];
};
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
View my complete profile
Blog Archive
►
2009
(14)
►
March
(4)
►
February
(4)
►
January
(6)
►
2008
(93)
►
December
(6)
►
November
(3)
►
October
(8)
►
September
(10)
►
July
(14)
►
June
(9)
►
May
(1)
►
April
(6)
►
March
(17)
►
February
(9)
►
January
(10)
▼
2007
(103)
►
December
(7)
►
November
(22)
►
October
(8)
►
July
(1)
▼
June
(63)
Alignment
Computer Systems-A Programmer's Perspective
Matlab: Diminishing the Size of a Matrix
Maximum Subsequence Sum
C++ Design Tricks
Chapter 1. Introduction
function signatures
explicit constructor
Dynamic 2 dimension array
Pointer to Member functions
Garbage Collection Algorithm
4.5 Inline function
Using the MATLAB Engine
4.4 Pointer to Member Functions
static class member
const, volatile, mutable
4.2 Virtual Member Functions
Effective C++
4.1 Varieties of Member Invocation
3.6 Pointer to Data Members
Virtual Memory
3.4 Inheritance and the Data Member
Source Insight
Programming Applications for Microsoft Windows
Synchonization Variables
Synchronization Issues
3.3 Access of a Data member
3.2 Data Member Layout
3.1 The binding of a Data Member
3.0 The Semantics of Data
Multithread Programming Primer
2.4 Member Initialization List
2.2 Copy Constructor Construction
2.1 Default Constructor Construction
Dynamic Link Library
Expert C Programming
A Book On C
RTTI
Introduction to Algorithms
Programming Pearls
library: .lib, .dll
Bridge Pattern
C++ Gotcha
Inside the C++ Object Model
Random
the lifetime of a temporary
static initialization (and deallocation)
Binary semaphore vs. mutex
const vs volatile
编译器如何区分含有const关键字的重载?
c++ cast operators
pointer to member function
Singleton Pattern
c++ default methods
C# Introduction and Overview [MSDN]
Hash Function
virtual inheritance
c vs c++
const
Smart Pointer
Multiple Inheritance
virtual (or pure virtual) destructors
Pointer to Data Members
►
May
(1)
►
April
(1)
Labels
Algorithms
C Language
C++
CodeReview
Compiler_Design
Computer Systems
Data Structures
Database
Design Patterns
Health
Kernel
Multithread
Networking
Others
Performance
Script Language
STL
Tools
Ubuntu
Unix/Linux
VMWARE
办公自动化
股票
Books
C++ Gotcha
C++ In Action
Computer Systems
Effective C++
Inside the C++ Object Model
Introduction to Algorithms
Programming Applications for Microsoft Windows
Programming Pearls
No comments:
Post a Comment