The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.c++.moderated
From: "Andrei Alexandrescu" <SeeWebsiteForEm...@moderncppdesign.com>
Date: 13 Mar 2003 08:11:20 -0500
Local: Thurs, Mar 13 2003 8:11 am
Subject: Re: operator belongs_to
news:b4mbue$21fr5e$1@ID-79865.news.dfncis.de...
> Is it possible to define something like to operator belongs_to ? > > For instance, I would like to know is some int-value val1 belongs to vector<int> vect1. > > Instead of using find-algorithm I would prefer to use operator belongs_to. A while back I've been toying with a combination of macros and templates vector<int> v; The idea was to define BELONGS_TO like this: #define BELONGS_TO *belongs_to* and then define belongs_to as a global object with the appropriate * The scaffolding is quite interesting, but overall I find the idea too whacky Andrei [ Send an empty e-mail to c++-h...@netlab.cs.rpi.edu for info ] You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||