Re: Why "Access Violent" throw when insert pair object into std::map
- From: "Giovanni Dicanio" <giovanni.dicanio@xxxxxxxxxxx>
- Date: Mon, 3 Mar 2008 08:26:44 +0100
"Doug Harrison [MVP]" <dsh@xxxxxxxx> ha scritto nel messaggio
news:luhms357l8ri9sm7m8grkiq8eh1slop3pk@xxxxxxxxxx
As a minor optimization, it's better to use map::value_type than std::pair[...]
or even std::make_pair; it's less error-prone and often shorter to type
typedef CellMapCollection::value_type CellMapPair;
You are right.
Thanks,
Giovanni
.
- References:
- Re: Why "Access Violent" throw when insert pair object into std::map
- From: Giovanni Dicanio
- Re: Why "Access Violent" throw when insert pair object into std::map
- From: Doug Harrison [MVP]
- Re: Why "Access Violent" throw when insert pair object into std::map
- Prev by Date: Re: Why "Access Violent" throw when insert pair object into std::map
- Next by Date: Delete a list item from a separate thread safe?
- Previous by thread: Re: Why "Access Violent" throw when insert pair object into std::map
- Next by thread: Re: Why "Access Violent" throw when insert pair object into std::map
- Index(es):