summaryrefslogtreecommitdiff
path: root/Rx/v2/src/rxcpp/operators/rx-start_with.hpp
blob: d605ceb9c9253a6a71459e8a76e4409d240550ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.

#pragma once

#if !defined(RXCPP_OPERATORS_RX_START_WITH_HPP)
#define RXCPP_OPERATORS_RX_START_WITH_HPP

#include "../rx-includes.hpp"

namespace rxcpp {

namespace operators {

template<class Observable, class Value0, class... ValueN>
auto start_with(Observable o, Value0 v0, ValueN... vn)
    -> decltype(rxs::from(typename Observable::value_type(v0), typename Observable::value_type(vn)...).concat(o)) {
    return      rxs::from(typename Observable::value_type(v0), typename Observable::value_type(vn)...).concat(o);
}

}

}

#endif