Anklang-0.3.0.dev956+gd75ac925 anklang-0.3.0.dev956+gd75ac925
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
device.cc
Go to the documentation of this file.
1 // This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
2#include "device.hh"
3#include "internal.hh"
4
5namespace Ase {
6
7// == DeviceImpl ==
8template<typename E> std::pair<std::shared_ptr<E>,ssize_t>
9find_shared_by_ref (const std::vector<std::shared_ptr<E> > &v, const E &e)
10{
11 for (ssize_t i = 0; i < v.size(); i++)
12 if (&e == &*v[i])
13 return std::make_pair (v[i], i);
15}
16
17} // Ase
T make_pair(T... args)
The Anklang C++ API namespace.
Definition api.hh:8
typedef ssize_t