Skip to content

IwachanOrigin/mementopattern_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mementopattern cpp demo code

Overview

Memento Patternの使い方

使いどころ

あるオブジェクトの「今しかない瞬間を」保持しておく必要がある場合に利用します。  
変更前のオブジェクトを保持しておくことで、以前の状態に戻すことが出来るようになります。  

Build

1. このリポジトリをクローンします。  
2. 以下のコマンドでビルドします。  
ex. VS2017 の場合  
powershell.exe cmake -S . -B build -G "\"Visual Studio 15 2017 Win64\""  
powershell.exe cmake --build build  

ex. VS2019以上の場合  
powershell.exe cmake -S . -B build  
powershell.exe cmake --build build  

ex. Ninja + LLVMの場合(LLVM 15 win64で検証)  
powershell.exe cmake -S . -B build -G "\"Ninja Multi-Config\""  
powershell.exe cmake --build build --config debug

Licence

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published