OpenTTD Source: SlDequeHelper< T > Class Template Reference

OpenTTD Source 1.11.0-RC1

Static Public Member Functions | Private Types
SlDequeHelper< T > Class Template Reference

Template class to help with std::deque. More...

## Static Public Member Functions
static size_t | SlCalcDequeLen (const void *deque, VarType conv)
| Internal templated helper to return the size in bytes of a std::deque. More...
static void | SlDeque (void *deque, VarType conv)
| Internal templated helper to save/load a std::deque. More...

## Private Types
typedef std::deque< T > | SlDequeT

## Detailed Description

### template<typename T>
class SlDequeHelper< T >

Template class to help with std::deque.

Definition at line 1287 of file saveload.cpp.

## Member Function Documentation

## ◆ SlCalcDequeLen()

template<typename T >

static size_t SlDequeHelper< T >::SlCalcDequeLen | ( | const void * | deque,
|  | VarType | conv
| ) |  |
| inlinestatic

Internal templated helper to return the size in bytes of a std::deque.

Parameters

  deque | The std::deque to find the size of
  conv | VarType type of variable that is used for calculating the size

Definition at line 1295 of file saveload.cpp.

References SlCalcConvFileLen().

## ◆ SlDeque()

template<typename T >

static void SlDequeHelper< T >::SlDeque | ( | void * | deque,
|  | VarType | conv
| ) |  |
| inlinestatic

Internal templated helper to save/load a std::deque.

Parameters

  deque | The std::deque being manipulated
  conv | VarType type of variable that is used for calculating the size

Definition at line 1310 of file saveload.cpp.

References _sl, SaveLoadParams::action, and SLA_SAVE.

The documentation for this class was generated from the following file:

- src/saveload/saveload.cpp