template for PDU::Handler type

This commit is contained in:
Kevin Matz 2021-02-02 14:19:09 -05:00
parent 4dfac265c7
commit 5620a6c7e1
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#pragma once
#include <cstdint>
#include <functional>
#include <istream>
#include <memory>
#include <vector>
@ -134,6 +135,9 @@ private:
};
template <typename T>
using Handler = std::function<void(std::shared_ptr<T>)>;
template <typename T>
using Block = std::shared_ptr<std::vector<std::shared_ptr<T>>>;