public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeffrey Holle <jeff.holle@verizon.net>
To: gcc-help@gcc.gnu.org
Subject: Re: question about HOWTO use std::set in non-trival way...
Date: Sat, 11 Sep 2004 00:37:00 -0000	[thread overview]
Message-ID: <chthcn$ep8$1@sea.gmane.org> (raw)
In-Reply-To: <6.1.2.0.2.20040910185421.0207a9d8@iplan-mn.corp.adobe.com>

Found my own answer by looking at the implementation of set in 
bits/stl_set.h.
set has the approbriate constructor, so the answer is:
   Edges edges(ltSubGraph(graph_)).
A very thoughtful implementation!

Eljay Love-Jensen wrote:
> Hi Jeff,
> 
> Why does your ltSubgraph comparison function object class have a copy 
> constructor?
> 
> See section 18.4.2 of Stroustrup's C++ Programming Language (3rd or 
> special edition), for what a less functor object looks like.
> 
> HTH,
> --Eljay
> 
> 

      reply	other threads:[~2004-09-11  0:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-10 23:34 Jeffrey Holle
2004-09-10 23:59 ` Eljay Love-Jensen
2004-09-11  0:37   ` Jeffrey Holle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='chthcn$ep8$1@sea.gmane.org' \
    --to=jeff.holle@verizon.net \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).