• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: std::map<>::iterator in Xcode 2.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: std::map<>::iterator in Xcode 2.1


  • Subject: Re: std::map<>::iterator in Xcode 2.1
  • From: Paul Walmsley <email@hidden>
  • Date: Sat, 29 Oct 2005 20:13:29 +0100

David Fang wrote:

Hi,
	In the context in which your declaration appears,
map<...>::iterator is a "(template)-dependent name" in which case, you
need to prefix the declaration with the keyword 'typename'.



std::map<E, T*>::iterator iter;



typename std::map::<E,T*>::iterator iter;


typedef is also your friend here to help preserve sanity:
  typedef typename std::map<E,T*>::iterator  map_iterator;
   ...
  map_iterator iter=m.begin();
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: std::map<>::iterator in Xcode 2.1 (From: David Fang <email@hidden>)

  • Prev by Date: Java Projects in Xcode
  • Next by Date: Re: Java Projects in Xcode
  • Previous by thread: Re: std::map<>::iterator in Xcode 2.1
  • Next by thread: Creating Custom Project Templates
  • Index(es):
    • Date
    • Thread