swift
Public Member Functions | List of all members
swift::misc::CMapBuilder< K, V > Class Template Reference

Build a QMap more efficiently when calling insert() in a for loop. More...

Public Member Functions

template<typename... Ts>
void insert (Ts &&...keyAndValue)
 Add an key/value pair to the map. Runs in amortized constant time.
 
bool isEmpty () const
 True if no pairs have been inserted.
 
 operator QMap< K, V > () const &
 Return a container with unique keys. Runs in log-linear time.
 
 operator QMap< K, V > () &&
 Return a container with unique keys. Runs in log-linear time.
 
 operator QHash< K, V > () const &
 Return a container with unique keys. Runs in log-linear time.
 
 operator QHash< K, V > () &&
 Return a container with unique keys. Runs in log-linear time.
 
 operator std::map< K, V > () const &
 Return a container with unique keys. Runs in log-linear time.
 
 operator std::map< K, V > () &&
 Return a container with unique keys. Runs in log-linear time.
 

Detailed Description

template<typename K, typename V>
class swift::misc::CMapBuilder< K, V >

Build a QMap more efficiently when calling insert() in a for loop.

Definition at line 25 of file mapbuilder.h.


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