Add bt::nop node
This commit is contained in:
parent
8688b84982
commit
144916adae
1 changed files with 15 additions and 0 deletions
15
libs/bt/include/psemek/bt/nop.hpp
Normal file
15
libs/bt/include/psemek/bt/nop.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#include <psemek/bt/action.hpp>
|
||||
#include <psemek/util/functional.hpp>
|
||||
|
||||
namespace psemek::bt
|
||||
{
|
||||
|
||||
template <typename Tree>
|
||||
node_ptr<Tree> nop()
|
||||
{
|
||||
return action<Tree>(util::nop);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue