User Tools

Site Tools


c_data_types

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
c_data_types [2018/02/03 14:41]
rpjday
c_data_types [2018/02/05 12:57] (current)
rpjday
Line 21: Line 21:
   * ''<​numeric_limits>''​   * ''<​numeric_limits>''​
   * ''<​cstddef>''​   * ''<​cstddef>''​
 +
 +String literals:
 +
 +  * statically allocated so it's safe to return them from functions
  
 New with C++11: New with C++11:
Line 32: Line 36:
   * ''​auto''​ for deducing a type of an object from its initializer;​ the type can be the type of a variable, a ''​const'',​ or a ''​constexpr''​.   * ''​auto''​ for deducing a type of an object from its initializer;​ the type can be the type of a variable, a ''​const'',​ or a ''​constexpr''​.
   * ''​decltype(expr)''​ for deducing the type of something that is not a simple initializer,​ such as the return type for a function or the type of a class member.   * ''​decltype(expr)''​ for deducing the type of something that is not a simple initializer,​ such as the return type for a function or the type of a class member.
 +
 +General stuff:
 +
 +  * The result of ''​sizeof''​ is of an unsigned integral type called ''​size_t''​ defined in ''<​cstddef>''​. The result of pointer subtraction is of a signed integral type called ''​ptrdiff_t''​ defined in ''<​cstddef>''​.
c_data_types.1517668898.txt.gz ยท Last modified: 2018/02/03 14:41 by rpjday