mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd::ctx: Minor style/format fixes.
This commit is contained in:
parent
82aa59c5ec
commit
fbf07913f7
2 changed files with 18 additions and 18 deletions
|
@ -116,26 +116,26 @@ noexcept
|
|||
}
|
||||
|
||||
inline
|
||||
ircd::ctx::future<void>::future():
|
||||
st(nullptr)
|
||||
ircd::ctx::future<void>::future()
|
||||
:st{nullptr}
|
||||
{
|
||||
}
|
||||
|
||||
template<class T>
|
||||
ircd::ctx::future<T>::future():
|
||||
st(nullptr)
|
||||
ircd::ctx::future<T>::future()
|
||||
:st{nullptr}
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
ircd::ctx::future<void>::future(promise<void> &promise):
|
||||
st(promise.get_state().share())
|
||||
ircd::ctx::future<void>::future(promise<void> &promise)
|
||||
:st{promise.get_state().share()}
|
||||
{
|
||||
}
|
||||
|
||||
template<class T>
|
||||
ircd::ctx::future<T>::future(promise<T> &promise):
|
||||
st(promise.get_state().share())
|
||||
ircd::ctx::future<T>::future(promise<T> &promise)
|
||||
:st{promise.get_state().share()}
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -90,21 +90,21 @@ class ircd::ctx::promise<void>
|
|||
};
|
||||
|
||||
inline
|
||||
ircd::ctx::promise<void>::promise():
|
||||
st(std::make_shared<shared_state<void>>())
|
||||
ircd::ctx::promise<void>::promise()
|
||||
:st{std::make_shared<shared_state<void>>()}
|
||||
{
|
||||
}
|
||||
|
||||
template<class T>
|
||||
ircd::ctx::promise<T>::promise():
|
||||
st(std::make_shared<shared_state<T>>())
|
||||
ircd::ctx::promise<T>::promise()
|
||||
:st{std::make_shared<shared_state<T>>()}
|
||||
{
|
||||
}
|
||||
|
||||
template<class T>
|
||||
ircd::ctx::promise<T>::promise(promise<T> &&o)
|
||||
noexcept:
|
||||
st(std::move(o.st))
|
||||
noexcept
|
||||
:st{std::move(o.st)}
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue