Nested-Class static
Member Definitions
If QueryResult
had declared a static
member, its definition would appear outside the scope of the TextQuery
. For example, assuming QueryResult
had a static
member, its definition would look something like
// defines an int static member of QueryResult// which is a class nested inside TextQueryint TextQuery::QueryResult::static_mem = 1024;
Get C++ Primer, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.