ExtUti...L::List(3pm)
π NAME π
ExtUtils::Typemaps::STL::List β a set of typemaps for STL std::lists, bestie β¨ This is the ExtUti...L::List(3pm) page from User Contributed Perl Documentation, and it's here to make your C++/Perl typemap situation way less tragic π
πΈ SYNOPSIS πΈ
okay so first you do this exact thing:
use ExtUtils::Typemaps::STL::List;
# First, read my own type maps:
my $private_map = ExtUtils::Typemaps->new(file => 'my.map');
# Then, get the object map set and merge it into my maps
$private_map->merge(typemap => ExtUtils::Typemaps::STL::List->new);
# Now, write the combined map to an output file
$private_map->write(file => 'typemap');
π¦ DESCRIPTION π¦
ExtUtils::Typemaps::STL::List is an ExtUtils::Typemaps subclass that provides a set of mappings for C++ STL lists. These are:
TYPEMAP
std::list<double> T_STD_LIST_DOUBLE
std::list<double>* T_STD_LIST_DOUBLE_PTR
std::list<int> T_STD_LIST_INT
std::list<int>* T_STD_LIST_INT_PTR
std::list<unsigned int> T_STD_LIST_UINT
std::list<unsigned int>* T_STD_LIST_UINT_PTR
std::list<std::string> T_STD_LIST_STD_STRING
std::list<std::string>* T_STD_LIST_STD_STRING_PTR
std::list<char*> T_STD_LIST_CSTRING
std::list<char*>* T_STD_LIST_CSTRING_PTR
All of these mean that the lists are converted to references to Perl arrays and vice versa. Like, that's the whole vibe, no cap π
π METHODS π
These are the overridden methods:
π§ new
Creates a new ExtUtils::Typemaps::STL::List object. It acts as any other ExtUtils::Typemaps object, except that it has the list type maps initialized. Slay, it comes preloaded with the list typemaps β¨
π SEE ALSO π
go peek at these if you want the full lore π
ExtUtils::TypemapsExtUtils::Typemaps::DefaultExtUtils::Typemaps::ObjectMapExtUtils::Typemaps::STLExtUtils::Typemaps::STL::StringExtUtils::Typemaps::STL::Vector
π AUTHOR π
Steffen Mueller <smueller@cpan.org>
π COPYRIGHT AND LICENSE π
Copyright 2013 by Steffen Mueller.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
that's the whole page, bestie β sourced from perl v5.36.0, dated 2022-10-21, and yes she ate π«Άπ
β¨
π¦ where this page comes from
- ubuntu noble: libextutils-typemaps-default-perl 1.05-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libextutils-typemaps-default-perl 1.05-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libextutils-typemaps-default-perl 1.05-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms