mirror of https://github.com/OpenTTD/OpenTTD
(svn r21645) -Doc: Document SmallPair and SmallMap template parameters.
parent
28f16a732f
commit
8282b66b70
|
@ -15,7 +15,11 @@
|
||||||
#include "smallvec_type.hpp"
|
#include "smallvec_type.hpp"
|
||||||
#include "sort_func.hpp"
|
#include "sort_func.hpp"
|
||||||
|
|
||||||
/** Simple pair of data. Both types have to be POD ("Plain Old Data")! */
|
/**
|
||||||
|
* Simple pair of data. Both types have to be POD ("Plain Old Data")!
|
||||||
|
* @tvar T Key type.
|
||||||
|
* @tvar U Value type.
|
||||||
|
*/
|
||||||
template <typename T, typename U>
|
template <typename T, typename U>
|
||||||
struct SmallPair {
|
struct SmallPair {
|
||||||
T first;
|
T first;
|
||||||
|
@ -28,6 +32,10 @@ struct SmallPair {
|
||||||
/**
|
/**
|
||||||
* Implementation of simple mapping class. Both types have to be POD ("Plain Old Data")!
|
* Implementation of simple mapping class. Both types have to be POD ("Plain Old Data")!
|
||||||
* It has inherited accessors from SmallVector().
|
* It has inherited accessors from SmallVector().
|
||||||
|
* @tvar T Key type.
|
||||||
|
* @tvar U Value type.
|
||||||
|
* @tvar S Unit of allocation.
|
||||||
|
*
|
||||||
* @see SmallVector
|
* @see SmallVector
|
||||||
*/
|
*/
|
||||||
template <typename T, typename U, uint S = 16>
|
template <typename T, typename U, uint S = 16>
|
||||||
|
|
Loading…
Reference in New Issue