Difference between revisions of "C++"

From LPTMS Wiki
Jump to: navigation, search
m
m (Miscellaneous)
 
(9 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
* [http://www.cplusplus.com Cplusplus] -- [http://www.cplusplus.com/reference Reference]
 
* [http://www.cplusplus.com Cplusplus] -- [http://www.cplusplus.com/reference Reference]
  
==Pointers handling==
+
===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]
quick example of c++ source display:
+
* [[pointer to member function]]
<source lang="cpp">
+
* [[Interfacing C++ and Python]]
template<typename T> class B
+
* [[OpenMP_and_Multithreading#C++|OpenMP in C++]]
{
+
* [[128 bits integers with gcc]]
private:
+
* [[low-level integer routines with gcc]]
  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