Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8163165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:57:32+00:00 2026-06-06T18:57:32+00:00

In C++, when using the Resource Acquisition is Initialization (RAII) pattern, are there any

  • 0

In C++, when using the Resource Acquisition is Initialization (RAII) pattern, are there any common conventions for naming the classes?

In my case, I have classes which do the following kinds of things and I would like names which are likely to invoke a useful meaning to a first time reader when seeing one of these on the stack:

  • A class to suppress logging (which can be nested).
  • A class to put in place an observer.
  • A class to record the current object being processed for the current thread.
  • A derived class to process the object in addition to the base class behavior (in prior line).

As a first cut, I have used names like these (in corresponding order to above), but hope to improve upon them:

  • class SuppressLogger
  • class ScopedObserver
  • class WithCurrentObject
  • class WithObjectProcessed : public WithCurrentObject
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:57:34+00:00Added an answer on June 6, 2026 at 6:57 pm

    RAII should be used all throughout the language. Since it should be the default, there’s is no naming convention to follow.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using Resource Acquisition Is Initialisation (RIAA) in C++ it's typical to have something
I have several drivers using a resource in my code, of which only one
Being primarily a C++ developer the absence of RAII (Resource Acquisition Is Initialization) in
i have seen people localize their form using resource. put text data in resource
I have successfully implemented slider to my Cocos2D project using this resource . The
I using the Rails resource_controller plugin. I have a ReleasesController, which is nested within
I have project asp.net with namespace test and I'm using resources (files Resource.resx and
I have a little dialog I created using Resource Editor in VS2005. It's going
I am pretty new to Wicket and i have some difficulties with using resource
I am creating one application in which I am using resource files to keep

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.