a[4], data[5])
        );
     
        for (int x : view)
            [std::cout](http://en.cppreference.com/w/cpp/io/cout) << x << ' ';
        [std::cout](http://en.cppreference.com/w/cpp/io/cout) << '\n';
    }

Output:

    
    
    6 9 12 15

###  [ [ edit
](/mwiki/index.php?title=cpp/ranges/adjacent_transform_view&action=edit&section=8
"Edit section: References") ]  References

  * C++23 standard (ISO/IEC 14882:2023): 

    

  * 26.7.27 Adjacent transform view [range.adjacent.transform] 

###  [ [ edit
](/mwiki/index.php?title=cpp/ranges/adjacent_transform_view&action=edit&section=9
"Edit section: See also") ]  See also

[ ranges::adjacent_view  views::adjacent  ](/w/cpp/ranges/adjacent_view "cpp/ranges/adjacent view") (C++23)  |  a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") consisting of tuples of references to adjacent elements of the adapted view   
(class template)  (range adaptor object)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_adjacent_view&action=edit)  
---|---  
[ ranges::transform_view  views::transform  ](/w/cpp/ranges/transform_view "cpp/ranges/transform view") (C++20)  |  a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") of a sequence that applies a transformation function to each element   
(class template)  (range adaptor object)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_transform_view&action=edit)  
[ ranges::zip_transform_view  views::zip_transform  ](/w/cpp/ranges/zip_transform_view "cpp/ranges/zip transform view") (C++23)  |  a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") consisting of tuples of results of application of a transformation function to corresponding elements of the adapted views   
(class template)  (customization point object)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_zip_transform_view&action=edit)  
[ ranges::transform  ](/w/cpp/algorithm/ranges/transform "cpp/algorithm/ranges/transform") (C++20)  |  applies a function to a range of elements   
(niebloid)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/algorithm/ranges/dsc_transform&action=edit)  
  
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/adjacent_transform_view&oldid=167015
](https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/adjacent_transform_view&oldid=167015)
"

#####  Navigation

  * [ Support us ](http://www.cppreference.com/support)
  * [ Recent changes ](/w/Special:RecentChanges "A list of recent changes in the wiki \[r\]")
  * [ FAQ ](/w/Cppreference:FAQ)
  * [ Offline version ](/w/Cppreference:Archives)

#####  Toolbox

  * [ What links here ](/w/Special:WhatLinksHere/cpp/ranges/adjacent_transform_view "A list of all wiki pages that link here \[j\]")
  * [ Related changes ](/w/Special:RecentChangesLinked/cpp/ranges/adjacent_transform_view "Recent changes in pages linked from this page \[k\]")
  * [ Upload file ](http://upload.cppreference.com/w/Special:Upload "Upload files \[u\]")
  * [ Special pages ](/w/Special:SpecialPages "A list of all special pages \[q\]")
  * [ Printable version ](/mwiki/index.php?title=cpp/ranges/adjacent_transform_view&printable=yes "Printable version of this page \[p\]")
  * [ Permanent link ](/mwiki/index.php?title=cpp/ranges/adjacent_transform_view&oldid=167015 "Permanent link to this revision of the page")
  * [ Page information ](/mwiki/index.php?title=cpp/ranges/adjacent_transform_view&action=info)

  * In other languages 

  * [ Deutsch ](http://de.cppreference.com/w/cpp/ranges/adjacent_transform_view "cpp/ranges/adjacent transform view")
  * [ Español ](http://es.cppreference.com/w/cpp/ranges/adjacent_transform_view "cpp/ranges/adjacent transform view")
  * [ Français ](http://fr.cppreference.com/w/cpp/ranges/adjacent_transform_view "cpp/ranges/adjacent transform view")
  * [ Italiano ](http://it.cppreference.com/w/cpp/ranges/adjacent_transform_view "cpp/ranges/adj