C++: Difference between revisions

From LPTMS Wiki
Jump to navigation Jump to search
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Pointers handling==
== Reference websites ==
* [http://en.wikipedia.org/wiki/C++ Wikipedia]
* [http://www.cppreference.com/wiki CppReference]
* [http://www.cplusplus.com Cplusplus] -- [http://www.cplusplus.com/reference Reference]
 
===Pointers handling===
pointers are not always easy to handle, particularly for destruction, memory management... There exists some solutions provided by boost
pointers are not always easy to handle, particularly for destruction, memory management... There exists some solutions provided by boost
* [http://www.boost.org/doc/libs/release/libs/smart_ptr/smart_ptr.htm Smart pointers] (shared_ptr,...)
* [http://www.boost.org/doc/libs/release/libs/smart_ptr/smart_ptr.htm Smart pointers] (shared_ptr,...)
* [http://www.boost.org/doc/libs/release/libs/ptr_container Pointer containers] (vector, list, deque...)
* [http://www.boost.org/doc/libs/release/libs/ptr_container Pointer containers] (vector, list, deque...)


 
==Miscellaneous==
----
* [[Using a hashmap]]
 
* [http://wwwasd.web.cern.ch/wwwasd/cernlib/cfortran.html Interfacing C/C++ and Fortran]
 
* [[pointer to member function]]
testing c++ source display:
* [[Interfacing C++ and Python]]
 
* [[OpenMP_and_Multithreading#C++|OpenMP in C++]]
<source lang="cpp">
* [[128 bits integers with gcc]]
template<typename T> class B
* [[low-level integer routines with gcc]]
{
private:
  T t;
public:
  B(T const& _t) : t(_t) {};
  T value() const {return t;};
};
 
int main()
{
  B<int> b(2);
}
</source>

Latest revision as of 16:22, 11 April 2012

Reference websites

Pointers handling

pointers are not always easy to handle, particularly for destruction, memory management... There exists some solutions provided by boost

Miscellaneous