class-members
Class member access : section 3.4.5, point 2: point from N3290 draft C++
Class member access : section 3.4.5, point 2: If the id-expression in a class member access (5.2.5) is an[详细]
2023-04-01 00:04 分类:问答c++ private member variable unknown in another function
I have a newbie question about how to assign class member (setter). I am used to scripting and mostly there it\'s done via (in python)[详细]
2023-03-22 17:43 分类:问答What is the lifetime of the class data member which const reference to a rvalue?
Generally this discussion is up to the local function variable only: void foo (const int &i) { // use i till foo() ends[详细]
2023-03-20 13:25 分类:问答Is it possible to manually calculate the byte-offset of a class member?
That is, what is the standard a compiler uses to generate a class? 开发者_StackOverflow社区 For example, let\'s say that I have class C with members x, y, and z, and I want to know the offset of z wit[详细]
2023-03-20 06:13 分类:问答C++ define class member struct and return it in a member function
My goal is a class like: class UserInformation { public: userInfo getInfo(int userId); private: struct userInfo[详细]
2023-02-21 06:39 分类:问答Why can I not access this class member in python?
I have the following code class Transcription(object): WORD = 0 PHONE = 1 STATE = 2 def __init__(self): self.transcriptions = [][详细]
2023-02-04 02:08 分类:问答How to get access to this class member from within a callback?
This question is best explained with some code, so here it is: // a class function a_class { this.a_var= null;[详细]
2023-02-02 10:56 分类:问答Objective-C : How may I hide a class member from outside the class?
I\'m fighting with something and I don\'t find any satisfying solution. I have a class with a \"myMutableArray\" member.[详细]
2023-02-02 07:11 分类:问答Is it possible to initialize static const member object in a class in C++?
Is it possible to initialize a static constant member in a class definition? Please see below for the code,[详细]
2023-01-23 19:48 分类:问答What is the right way to put a smart pointer in class data (as class member) in C++?
Suppose I have a class Boda: class Boda { ... }; And I have a member cydo in this class that I want to be a smart pointer (that is, I want it to get deallocated automatically as soon as the class g[详细]
2023-01-11 07:43 分类:问答