Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #11664
| From | Victor Bazarov <v.bazarov@comcast.invalid> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Any way to bind an object with an integer |
| Date | 2011-11-21 12:04 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <jae0aa$7hc$1@dont-email.me> (permalink) |
| References | <54106ae2-c52c-4e83-aabf-5c34ba415019@m19g2000yqh.googlegroups.com> |
On 11/19/2011 5:37 PM, Jayden Shui wrote: > I think usually we require to bind an object with a data, such as an > integer. From this object, we can easily and quickly get its bound > integer. std::map requires the object to be compared. Any other way to > do it? A derived class that adds an integer as a data member? You disclose too little of the requirements to recommend anything specific... V -- I do not respond to top-posted replies, please don't ask
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Any way to bind an object with an integer Jayden Shui <jayden.shui@gmail.com> - 2011-11-19 14:37 -0800 Re: Any way to bind an object with an integer Victor Bazarov <v.bazarov@comcast.invalid> - 2011-11-21 12:04 -0500 Re: Any way to bind an object with an integer XeCycle <xecycle@gmail.com> - 2011-11-22 12:04 +0800 Re: Any way to bind an object with an integer SG <s.gesemann@gmail.com> - 2011-11-22 01:09 -0800
csiph-web