The Battle for Wesnoth  1.15.1+dev
Classes | Functions
map.hpp File Reference
#include "map/location.hpp"
#include "units/ptr.hpp"
#include "utils/reference_counter.hpp"
#include <cassert>
#include <list>
#include <map>
#include <unordered_map>
Include dependency graph for map.hpp:

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 iterators pointing 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 449 of file map.cpp.

References unit_map::swap().

Referenced by unit_map::swap().