0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::util: Remove separate header for pair gimmick; move to stdinc.h

This commit is contained in:
Jason Volk 2020-10-10 01:15:48 -07:00
parent c49e546be5
commit d10576a03e
3 changed files with 6 additions and 23 deletions

View file

@ -214,6 +214,12 @@ namespace ircd
template<class... T> using ilist = std::initializer_list<T...>;
using std::error_code;
/// Simple gimmick to allow shorter declarations when both elements
/// of a pair are the same.
template<class A,
class B = A>
using pair = std::pair<A, B>;
}
#pragma GCC visibility pop // default

View file

@ -1,22 +0,0 @@
// The Construct
//
// Copyright (C) The Construct Developers, Authors & Contributors
// Copyright (C) 2016-2020 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#pragma once
#define HAVE_IRCD_UTIL_PAIR_H
namespace ircd {
inline namespace util
{
/// Simple gimmick to allow shorter declarations when both elements
/// of a pair are the same.
template<class A,
class B = A>
using pair = std::pair<A, B>;
}}

View file

@ -32,7 +32,6 @@ namespace ircd
#include "typography.h"
#include "identity.h"
#include "pair.h"
#include "unit_literal.h"
#include "construction.h"
#include "unwind.h"