c++ Programming Glossary: immutable
Memory-efficient C++ strings (interning, ropes, copy-on-write, etc) http://stackoverflow.com/questions/1116040/memory-efficient-c-strings-interning-ropes-copy-on-write-etc share improve this question If most of your strings are immutable the Boost Flyweight library might suit your needs. It will do..
Covariance and contravariance in programming languages http://stackoverflow.com/questions/1163465/covariance-and-contravariance-in-programming-languages which was not an apple as above. Hence we should only like immutable collection classes to be covariant share improve this answer..
How to initialize a const field in constructor? http://stackoverflow.com/questions/1423696/how-to-initialize-a-const-field-in-constructor Foo pointer is passed and this pointer is meant to remain immutable in the Bar instance lifecycle. What is the correct way of doing..
Thread safety of std::map for read-only operations http://stackoverflow.com/questions/1846186/thread-safety-of-stdmap-for-read-only-operations as long as your map remains the same. The map you use is immutable de facto so any find will actually do a find in a map which..
C++0x memory model and speculative loads/stores http://stackoverflow.com/questions/2001913/c0x-memory-model-and-speculative-loads-stores idioms which would therefore be impossible such as sharing immutable data between threads without synchronisation. So although I'm..
Functional data structures in C++ http://stackoverflow.com/questions/2757278/functional-data-structures-in-c of a C data structure library providing functional a.k.a. immutable or persistent in the FP sense equivalents of the familiar STL.. By functional I mean that the objects themselves are immutable while modifications to those objects return new objects sharing..
How does dereferencing of a function pointer happen? http://stackoverflow.com/questions/2795575/how-does-dereferencing-of-a-function-pointer-happen what you expect if you keep in mind that functions are immutable. An array value is also converted to a pointer in an lvalue..
C++: const reference, before vs after type-specifier http://stackoverflow.com/questions/3694630/c-const-reference-before-vs-after-type-specifier with respect to the so both represent a reference to an immutable Fred instance. Fred const would mean the reference itself is.. instance. Fred const would mean the reference itself is immutable which is redundant when dealing with const pointers both Fred..
Difference between char* and char[] http://stackoverflow.com/questions/7564033/difference-between-char-and-char
initializer_list and move semantics http://stackoverflow.com/questions/8193102/initializer-list-and-move-semantics const T so the result of move in your code is T const an immutable rvalue reference. Such an expression can't meaningfully be moved..
Why is splitting a string slower in C++ than Python? http://stackoverflow.com/questions/9378500/why-is-splitting-a-string-slower-in-c-than-python question As a guess Python strings are reference counted immutable strings so that no strings are copied around in the Python code..
Why are strings immutable in many programming languages? [duplicate] http://stackoverflow.com/questions/9544182/why-are-strings-immutable-in-many-programming-languages are strings immutable in many programming languages duplicate Possible Duplicate.. strings be mutable in Java and .NET Why .NET String is immutable Several languages have chosen for this such as C# Java C and.. a pretty reasonable language design choice to make strings immutable. Some languages particularly functional languages like Haskell..
|