n_with(' ');
     
        for (auto c : joined)
            [std::cout](http://en.cppreference.com/w/cpp/io/cout) << c;
        [std::cout](http://en.cppreference.com/w/cpp/io/cout) << '\n';
    }

Output:

    
    
    This is a test.

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

[ ranges::join_view  views::join  ](/w/cpp/ranges/join_view "cpp/ranges/join view") (C++20)  |  a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") consisting of the sequence obtained from flattening a [ ` view ` ](/w/cpp/ranges/view "cpp/ranges/view") of [ ` range ` s ](/w/cpp/ranges/range "cpp/ranges/range")   
(class template)  (range adaptor object)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/ranges/dsc_join_view&action=edit)  
---|---  
  
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/join_with_view&oldid=167040
](https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/join_with_view&oldid=167040)
"

#####  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/join_with_view "A list of all wiki pages that link here \[j\]")
  * [ Related changes ](/w/Special:RecentChangesLinked/cpp/ranges/join_with_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/join_with_view&printable=yes "Printable version of this page \[p\]")
  * [ Permanent link ](/mwiki/index.php?title=cpp/ranges/join_with_view&oldid=167040 "Permanent link to this revision of the page")
  * [ Page information ](/mwiki/index.php?title=cpp/ranges/join_with_view&action=info)

  * In other languages 

  * [ Deutsch ](http://de.cppreference.com/w/cpp/ranges/join_with_view "cpp/ranges/join with view")
  * [ Español ](http://es.cppreference.com/w/cpp/ranges/join_with_view "cpp/ranges/join with view")
  * [ Français ](http://fr.cppreference.com/w/cpp/ranges/join_with_view "cpp/ranges/join with view")
  * [ Italiano ](http://it.cppreference.com/w/cpp/ranges/join_with_view "cpp/ranges/join with view")
  * [ 日本語 ](http://ja.cppreference.com/w/cpp/ranges/join_with_view "cpp/ranges/join with view")
  * [ Português ](http://pt.cppreference.com/w/cpp/ranges/join_with_view "cpp/ranges/join with view")
  * [ Русский ](http://ru.cppreference.com/w/cpp/ranges/join_with_view "cpp/ranges/join with view")
  * [ 中文 ](http://zh.cppreference.com/w/cpp/ranges/join_with_view "cpp/ranges/join with view")

  * This page was last modified on 24 December 2023, at 05:20. 
  * This page has been accessed 18,778 times. 

  * [ Privacy policy ](/w/Cppreference:Privacy_policy "Cppreference:Privacy policy")
  * [ About cppreference.com ](/w/Cppreference:About "Cppreference:About")
  * [ Disclaimers ](/w/Cppreference:General_disclaimer "Cppreference:General disclaimer")

  * [ ![Powered by MediaWiki](/mwiki/skins/common/images/poweredby_mediawiki_88x31.png) ](//www.mediawiki.org/) [ ![Powered by GeSHi](//upload.cppreference.com/mwiki/images/2/2b/powered_by_geshi_88x31.png) ](http://qbnz.com/highlighter/) [ ![Hosted by Tiger Technologies](//upload.cppreference.com/mwiki/images/9/94/powered_by_tigertech_88x31.png) ](http://www.tigertech.net/referral/cppreference.com)