Mercurial > hg > sv-dependency-builds
comparison win64-msvc/include/kj/memory.h @ 63:0f2d93caa50c
Update Win64 capnp builds to v0.6
author | Chris Cannam |
---|---|
date | Mon, 22 May 2017 18:56:49 +0100 |
parents | d93140aac40b |
children |
comparison
equal
deleted
inserted
replaced
62:0994c39f1e94 | 63:0f2d93caa50c |
---|---|
237 inline Maybe(Own<T>&& t) noexcept: ptr(kj::mv(t)) {} | 237 inline Maybe(Own<T>&& t) noexcept: ptr(kj::mv(t)) {} |
238 inline Maybe(Maybe&& other) noexcept: ptr(kj::mv(other.ptr)) {} | 238 inline Maybe(Maybe&& other) noexcept: ptr(kj::mv(other.ptr)) {} |
239 | 239 |
240 template <typename U> | 240 template <typename U> |
241 inline Maybe(Maybe<Own<U>>&& other): ptr(mv(other.ptr)) {} | 241 inline Maybe(Maybe<Own<U>>&& other): ptr(mv(other.ptr)) {} |
242 template <typename U> | |
243 inline Maybe(Own<U>&& other): ptr(mv(other)) {} | |
242 | 244 |
243 inline Maybe(decltype(nullptr)) noexcept: ptr(nullptr) {} | 245 inline Maybe(decltype(nullptr)) noexcept: ptr(nullptr) {} |
244 | 246 |
245 inline operator Maybe<T&>() { return ptr.get(); } | 247 inline operator Maybe<T&>() { return ptr.get(); } |
246 inline operator Maybe<const T&>() const { return ptr.get(); } | 248 inline operator Maybe<const T&>() const { return ptr.get(); } |