As there won't be a working template instantiation repository mechanism for quite some time, we will rely on explicit template instantiation. This has to be done manually. Include File locking To avoid multiple inclusion by CPP, the following lines are used with SomeFile. In principle, pointer return values provide means to access the internal state of an object. This is not a good idea.
Nothing is const.
Obviously, as the pointer itself is just a variable, it makes no sense to require it being const. Thus protecting the content pointed to is sufficient. Reference returns The same considerations made for pointer return values apply to reference return values. This will not work in all cases you want to return NULL if a requested object is not available. All rights reserved.