C++
Jump to navigation
Jump to search
Reference websites
Pointers handling
pointers are not always easy to handle, particularly for destruction, memory management... There exists some solutions provided by boost
- Smart pointers (shared_ptr,...)
- Pointer containers (vector, list, deque...)
quick example of c++ source display: <source lang="cpp"> template<typename T> class B { private:
T t;
public:
B(T const& _t) : t(_t) {}; T value() const {return t;};
};
int main() {
B<int> b(2);
} </source>