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)
|
* [Callback](#callback)
|
||||||
* [Lazy Loading](#lazy-loading)
|
* [Lazy Loading](#lazy-loading)
|
||||||
* [Double Dispatch](#double-dispatch)
|
* [Double Dispatch](#double-dispatch)
|
||||||
|
* [Resource Acquisition Is Initialization](#resource-acquisition-is-initialization)
|
||||||
|
|
||||||
## <a name="abstract-factory">Abstract Factory</a> [↑](#list-of-design-patterns)
|
## <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.
|
**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
|
**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
|
* 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
|
# Frequently asked questions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user