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