Changeset b12c036 for src


Ignore:
Timestamp:
May 21, 2018, 10:49:20 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
21bdce2
Parents:
7fdb94e
Message:

add new insertAt member

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/ScopedMap.h

    r7fdb94e rb12c036  
    1010// Created On       : Wed Dec 2 11:37:00 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jul 21 22:18:24 2017
    13 // Update Count     : 2
     12// Last Modified On : Mon May 21 15:22:40 2018
     13// Update Count     : 3
    1414//
    1515
     
    276276        }
    277277
     278        template< typename value_t >
     279        std::pair< iterator, bool > insertAt( size_type scope, const Key& key, value_t&& value ) {
     280                return insertAt( scope, std::make_pair( key, std::forward<value_t>( value ) ) );
     281        }
     282
    278283        Value& operator[] ( const Key &key ) {
    279284                iterator slot = find( key );
Note: See TracChangeset for help on using the changeset viewer.