The Battle for Wesnoth  1.19.5+dev
Classes | Functions
map.hpp File Reference
#include "map/location.hpp"
#include "units/ptr.hpp"
#include "utils/reference_counter.hpp"
#include <cassert>
#include <map>
#include <unordered_map>
Include dependency graph for map.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  unit_map
 Container associating units to locations. More...
 
struct  unit_map::unit_pod
 The pointer to the unit and a reference counter to record the number of extant iteratorspointing to this unit. More...
 
struct  unit_map::standard_iter_types
 
struct  unit_map::const_iter_types
 
struct  unit_map::iterator_base< iter_types >
 

Functions

void swap (unit_map &lhs, unit_map &rhs)
 Implement non-member swap function for std::swap (calls unit_map::swap). More...
 

Function Documentation

◆ swap()

void swap ( unit_map lhs,
unit_map rhs 
)

Implement non-member swap function for std::swap (calls unit_map::swap).

Definition at line 440 of file map.cpp.

References unit_map::swap().

Referenced by unit_map::swap().