RxCpp
The Reactive Extensions for Native (RxCpp) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators in both C and C++.
Classes | Namespaces | Macros | Functions
rx-element_at.hpp File Reference

Pulls an item located at a specified index location in the sequence of items and emits that item as its own sole emission. More...

#include "../rx-includes.hpp"
Include dependency graph for rx-element_at.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rxcpp::member_overload< element_at_tag >
 

Namespaces

 rxcpp
 
 rxcpp::operators
 

Macros

#define RXCPP_OPERATORS_RX_ELEMENT_AT_HPP
 

Functions

template<class... AN>
auto rxcpp::operators::element_at (AN &&...an) -> operator_factory< element_at_tag, AN... >
 Pulls an item located at a specified index location in the sequence of items and emits that item as its own sole emission. More...
 

Detailed Description

Pulls an item located at a specified index location in the sequence of items and emits that item as its own sole emission.

Parameters
indexthe index of the element to return.
Returns
An observable that emit an item located at a specified index location.
Sample Code
auto values = rxcpp::observable<>::range(1, 7).element_at(3);
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 4
OnCompleted

Macro Definition Documentation

#define RXCPP_OPERATORS_RX_ELEMENT_AT_HPP