StackOverflow Questions for Tag: monostate

Eternal
Eternal

Reputation: 2949

When and why should I use std::monostate instead of std::optional with an std::variant?

Score: 6

Views: 792

Answers: 3

Read More
Rodrigo Belli
Rodrigo Belli

Reputation: 804

How to initilize a variant type class member to monostate

Score: 1

Views: 532

Answers: 0

Read More
oshaboy
oshaboy

Reputation: 119

Is it safe to reinterpret_cast from std::function<void()> * to std::function<std::monostate()> *?

Score: 0

Views: 250

Answers: 2

Read More
Shree
Shree

Reputation: 4747

Class with static members vs singleton

Score: 17

Views: 7813

Answers: 5

Read More
Ali Najafi
Ali Najafi

Reputation: 85

every python object of a class has same attribute value after creating

Score: 1

Views: 590

Answers: 1

Read More
Ruben Saucedo
Ruben Saucedo

Reputation: 249

Class vs Instance Scope in JavaScript

Score: 3

Views: 436

Answers: 3

Read More
einpoklum
einpoklum

Reputation: 131626

What should I use instead of void as one of the alternative types in an variant?

Score: 13

Views: 6109

Answers: 1

Read More
Ihor Baklykov
Ihor Baklykov

Reputation: 583

Is managing resources in destructor for monostate classes/static members a bad idea in C++?

Score: 0

Views: 147

Answers: 2

Read More
user4546925
user4546925

Reputation:

How to prevent a C++ compiler from creating any default class member?

Score: 2

Views: 885

Answers: 2

Read More
Andrew WC Brown
Andrew WC Brown

Reputation: 2260

AS3 Accessing Monostate instance child is null

Score: 0

Views: 28

Answers: 1

Read More
user3452758
user3452758

Reputation: 638

Polymer monostate pattern element not upgraded

Score: 2

Views: 163

Answers: 1

Read More
Refracted Paladin
Refracted Paladin

Reputation: 12216

Is this a proper MonoState Design?

Score: 1

Views: 293

Answers: 1

Read More
rh0dium
rh0dium

Reputation: 7032

Python Deprecation Warnings with Monostate __new__ -- Can someone explain why?

Score: 5

Views: 1302

Answers: 2

Read More
user2398029
user2398029

Reputation: 6937

Singleton vs. Monostate Pattern in Ruby

Score: 7

Views: 376

Answers: 1

Read More
PreviousPage 1Next