Updated README.md with Resource Acquisition Is Initialization pattern.
This commit is contained in:
parent
2d4da8eb40
commit
c1b09cbf61
@ -96,6 +96,7 @@ A programming idiom is a means of expressing a recurring construct in one or mor
|
||||
* [Callback](#callback)
|
||||
* [Lazy Loading](#lazy-loading)
|
||||
* [Double Dispatch](#double-dispatch)
|
||||
* [Resource Acquisition Is Initialization](#resource-acquisition-is-initialization)
|
||||
|
||||
## <a name="abstract-factory">Abstract Factory</a> [↑](#list-of-design-patterns)
|
||||
**Intent:** Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
|
||||
@ -592,6 +593,14 @@ validation and for building to order
|
||||
**Applicability:** Use the Multiton pattern when
|
||||
* there must be specific number of instances of a class, and they must be accessible to clients from a well-known access point
|
||||
|
||||
## <a name="resource-acquisition-is-initialization">Resource Acquisition Is Initialization</a> [↑](#list-of-design-patterns)
|
||||
**Intent:** Resource Acquisition Is Initialization pattern can be used to implement exception safe resource management.
|
||||
|
||||

|
||||
|
||||
**Applicability:** Use the Resource Acquisition Is Initialization pattern when
|
||||
* You have resources that must be closed in every condition
|
||||
|
||||
|
||||
|
||||
# Frequently asked questions
|
||||
|
Loading…
x
Reference in New Issue
Block a user