Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace details {
- template<typename Head, typename... Tail>
- void null(Head& head, Tail&... tail) noexcept(noexcept(head = nullptr) && noexcept(null(tail...))) {
- head = nullptr;
- null(tail...);
- }
- template<typename Head>
- void null(Head& head) noexcept(noexcept(head = nullptr)) {
- head = nullptr;
- }
- void null() { }
- }
- template<typename... Args>
- void null(Args&... args) noexcept(noexcept(details::null(args...))) {
- details::null(args...);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement