mirror of
https://github.com/QRouland/UTPass.git
synced 2026-01-10 03:26:57 +00:00
Refactor cloning feature and ui
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
/**
|
||||
* @brief A utility structure for enabling function overloading with template-based classes.
|
||||
* see : https://stackoverflow.com/a/64018031
|
||||
*/
|
||||
template<class... Ts>
|
||||
struct overload : Ts... {
|
||||
using Ts::operator()...;
|
||||
};
|
||||
/**
|
||||
* @brief Deduction guide for the `overload` template.
|
||||
* see : https://stackoverflow.com/a/64018031
|
||||
*/
|
||||
template<class... Ts>
|
||||
overload(Ts...) -> overload<Ts...>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user