public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* C++ member functions vs C++ free-functions, which compiles faster???
@ 2021-08-07 20:59 unlvsur unlvsur
  0 siblings, 0 replies; only message in thread
From: unlvsur unlvsur @ 2021-08-07 20:59 UTC (permalink / raw)
  To: gcc


struct foo
{
void write()
{
            //dosomething
}
};

Vs

struct foo
{
};
Inline void write(foo&)
{
            //dosomething
}

Which one compiles faster?
My guess is that the first one compiles faster since it is more context free compared to 2nd one.

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-07 20:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-07 20:59 C++ member functions vs C++ free-functions, which compiles faster??? unlvsur unlvsur

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).