mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 13:53:40 +01:00
add get_component
This commit is contained in:
parent
3bf00059a4
commit
43078dc597
@ -165,6 +165,9 @@ namespace triqs { namespace gf {
|
|||||||
template<int pos, typename P>
|
template<int pos, typename P>
|
||||||
auto get_point(P const & p) DECL_AND_RETURN( std::get<pos>( p.mesh()->components() ).index_to_point( std::get<pos>(p.components_tuple()).index() ) );
|
auto get_point(P const & p) DECL_AND_RETURN( std::get<pos>( p.mesh()->components() ).index_to_point( std::get<pos>(p.components_tuple()).index() ) );
|
||||||
|
|
||||||
|
template<int pos, typename P>
|
||||||
|
auto get_component(P const & p) DECL_AND_RETURN( std::get<pos>(p.components_tuple()));
|
||||||
|
|
||||||
// C++14
|
// C++14
|
||||||
//auto get_point(P const & p) { return std::get<pos> (p.mesh()->components()).index_to_point( std::get<pos>(p.components_tuple()));}
|
//auto get_point(P const & p) { return std::get<pos> (p.mesh()->components()).index_to_point( std::get<pos>(p.components_tuple()));}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user