    #include <iostream>
    #include <thread>
     
    class Bar
    {
    public:
        void operator()(int a)
        {
            std::cout << a << '\n';
        }
    };
     
    int main()
    {
        Bar bar;
        
        // Create and execute the thread
        std::thread thread(bar, 10); // Pass 10 to functor object
     
        // The functor object will be executed in a separate thread
     
        // Wait for the thread to finish, this is a blocking operation
        thread.join();
     
        return 0;
    }